]> git.sur5r.net Git - cc65/blob - libsrc/cbm610/Makefile
Added routines to handle command line params
[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         mainargs.o      \
41         peeksys.o       \
42         pokesys.o       \
43         randomize.o     \
44         revers.o        \
45         rs232.o
46
47 #--------------------------------------------------------------------------
48 # Drivers
49
50 TGIS =
51
52 EMDS =  cbm610-ram.emd
53
54 #--------------------------------------------------------------------------
55 # Targets
56
57 .PHONY: all clean zap
58
59 all:    $(OBJS) $(EMDS) $(TGIS)
60
61 ../runtime/zeropage.o:
62         $(MAKE) -C $(dir $@) $(notdir $@)
63
64 clean:
65         @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
66
67 zap:    clean
68         @rm -f $(EMDS) $(TGIS)
69