]> git.sur5r.net Git - cc65/blob - libsrc/c64/Makefile
Added get_tv for several platforms
[cc65] / libsrc / c64 / Makefile
1 #
2 # makefile for CC65 runtime library
3 #
4
5 .SUFFIXES: .o .s .c
6
7
8 #--------------------------------------------------------------------------
9 # Rules
10
11 %.o:    %.c
12         @$(CC) $(CFLAGS) $<
13         @$(AS) -o $@ $(AFLAGS) $(*).s
14
15 %.o:    %.s
16         @$(AS) -g -o $@ $(AFLAGS) $<
17
18 %.emd:  %.o ../runtime/zeropage.o
19         @$(LD) -t module -o $@ $^
20
21 %.tgi:  %.o ../runtime/zeropage.o
22         @$(LD) -t module -o $@ $^
23
24 #--------------------------------------------------------------------------
25 # Object files
26
27 OBJS =  _scrsize.o              \
28         break.o                 \
29         crt0.o                  \
30         cgetc.o                 \
31         clrscr.o                \
32         color.o                 \
33         conio.o                 \
34         cputc.o                 \
35         get_tv.o                \
36         kbhit.o                 \
37         kernal.o                \
38         mouse.o                 \
39         randomize.o             \
40         readjoy.o               \
41         rs232.o                 \
42         tgi_mode_table.o
43
44 #--------------------------------------------------------------------------
45 # Drivers
46
47 TGIS =  c64-320-200-2.tgi
48
49 EMDS =  c64-georam.emd c64-ram.emd c64-reu.emd
50
51 #--------------------------------------------------------------------------
52 # Targets
53
54 all:    $(OBJS) $(EMDS) $(TGIS)
55
56 ../runtime/zeropage.o:
57         $(MAKE) -C $(dir $@) $(notdir $@)
58
59 clean:
60         @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
61