]> git.sur5r.net Git - cc65/blob - libsrc/cbm610/Makefile
Make sure the zap target is available
[cc65] / libsrc / cbm610 / 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 %.tgi:  %.o ../runtime/zeropage.o
21         @$(LD) -t module -o $@ $^
22
23 #--------------------------------------------------------------------------
24 # Object files
25
26 OBJS =  _scrsize.o      \
27         banking.o       \
28         break.o         \
29         cgetc.o         \
30         clrscr.o        \
31         color.o         \
32         cputc.o         \
33         crt0.o          \
34         crtc.o          \
35         kbhit.o         \
36         kirq.o          \
37         kplot.o         \
38         kscnkey.o       \
39         kudtim.o        \
40         peeksys.o       \
41         pokesys.o       \
42         randomize.o     \
43         revers.o        \
44         rs232.o
45
46 #--------------------------------------------------------------------------
47 # Drivers
48
49 TGIS =
50
51 EMDS =  cbm610-ram.emd
52
53 #--------------------------------------------------------------------------
54 # Targets
55
56 .PHONY: all clean zap
57
58 all:    $(OBJS) $(EMDS) $(TGIS)
59
60 ../runtime/zeropage.o:
61         $(MAKE) -C $(dir $@) $(notdir $@)
62
63 clean:
64         @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
65
66 zap:    clean
67         @rm -f $(EMDS) $(TGIS)
68