]> git.sur5r.net Git - cc65/blob - libsrc/atmos/Makefile
Add basic support for ORIC Atmos
[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                 gotox.o         \
34                 gotoxy.o        \
35                 gotoy.o         \
36                 kbhit.o         \
37                 mainargs.o      \
38                 revers.o        \
39                 systime.o       \
40                 wherex.o        \
41                 wherey.o        \
42                 write.o         
43
44 #--------------------------------------------------------------------------
45 # Targets
46
47 .PHONY: all clean zap
48
49 all:    $(C_OBJS) $(S_OBJS)
50
51 clean:
52         @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
53
54 zap:    clean
55