]> git.sur5r.net Git - cc65/blob - libsrc/atmos/Makefile
Added oserrlist.s from Stefan Haubenthal
[cc65] / libsrc / atmos / Makefile
1 #
2 # makefile for CC65 runtime library
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Rules
9
10 %.o:    %.c
11         @$(CC) $(CFLAGS) $<
12         @$(AS) -o $@ $(AFLAGS) $(*).s
13
14 %.o:    %.s
15         @$(AS) -g -o $@ $(AFLAGS) $<
16
17 #--------------------------------------------------------------------------
18 # Object files
19
20 C_OBJS =
21
22 S_OBJS  =       _scrsize.o      \
23                 cclear.o        \
24                 cgetc.o         \
25                 chline.o        \
26                 clock.o         \
27                 clrscr.o        \
28                 color.o         \
29                 cputc.o         \
30                 crt0.o          \
31                 ctype.o         \
32                 cvline.o        \
33                 getenv.o        \
34                 gotox.o         \
35                 gotoxy.o        \
36                 gotoy.o         \
37                 kbhit.o         \
38                 mainargs.o      \
39                 oserrlist.o     \
40                 revers.o        \
41                 systime.o       \
42                 sysuname.o      \
43                 wherex.o        \
44                 wherey.o        \
45                 write.o
46
47 #--------------------------------------------------------------------------
48 # Targets
49
50 .PHONY: all clean zap
51
52 all:    $(C_OBJS) $(S_OBJS)
53
54 clean:
55         @$(RM) $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
56
57 zap:    clean
58