]> git.sur5r.net Git - cc65/blob - libsrc/atmos/Makefile
TGI driver by 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 %.emd:  %.o ../runtime/zeropage.o
18         @$(LD) -t module -o $@ $^
19
20 %.joy:  %.o ../runtime/zeropage.o
21         @$(LD) -t module -o $@ $^
22
23 %.mou:  %.o ../runtime/zeropage.o
24         @$(LD) -t module -o $@ $^
25
26 %.ser:  %.o ../runtime/zeropage.o
27         @$(LD) -t module -o $@ $^
28
29 %.tgi:  %.o ../runtime/zeropage.o
30         @$(LD) -t module -o $@ $^
31
32 #--------------------------------------------------------------------------
33 # Object files
34
35 OBJS  = _scrsize.o      \
36         cclear.o        \
37         cgetc.o         \
38         chline.o        \
39         clock.o         \
40         clrscr.o        \
41         color.o         \
42         cputc.o         \
43         crt0.o          \
44         ctype.o         \
45         cvline.o        \
46         getenv.o        \
47         gotox.o         \
48         gotoxy.o        \
49         gotoy.o         \
50         kbhit.o         \
51         mainargs.o      \
52         oserrlist.o     \
53         revers.o        \
54         systime.o       \
55         sysuname.o      \
56         wherex.o        \
57         wherey.o        \
58         write.o
59
60 #--------------------------------------------------------------------------
61 # Drivers
62
63 EMDS =
64
65 JOYS =
66
67 MOUS =
68
69 SERS =
70
71 TGIS = atmos-240-200-2.tgi
72
73 #--------------------------------------------------------------------------
74 # Targets
75
76 .PHONY: all clean zap
77
78 all:    $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
79
80 ../runtime/zeropage.o:
81         $(MAKE) -C $(dir $@) $(notdir $@)
82
83 clean:
84         @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
85
86 zap:    clean
87         @$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
88
89