]> git.sur5r.net Git - cc65/blob - libsrc/c64/Makefile
em drivers for VDC (both C128 native and C128 in C64 mode)
[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         revers.o                \
42         rs232.o                 \
43         tgi_mode_table.o
44
45 #--------------------------------------------------------------------------
46 # Drivers
47
48 TGIS =  c64-320-200-2.tgi
49
50 EMDS =  c64-georam.emd c64-ram.emd c64-reu.emd c64-vdc.emd
51
52 #--------------------------------------------------------------------------
53 # Targets
54
55 all:    $(OBJS) $(EMDS) $(TGIS)
56
57 ../runtime/zeropage.o:
58         $(MAKE) -C $(dir $@) $(notdir $@)
59
60 clean:
61         @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
62