]> git.sur5r.net Git - cc65/blob - libsrc/c128/Makefile
em drivers for VDC (both C128 native and C128 in C64 mode)
[cc65] / libsrc / c128 / 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         break.o         \
28         cgetc.o         \
29         clrscr.o        \
30         conio.o         \
31         crt0.o          \
32         color.o         \
33         cputc.o         \
34         get_tv.o        \
35         kbhit.o         \
36         kernal.o        \
37         mouse.o         \
38         randomize.o     \
39         readjoy.o       \
40         revers.o        \
41         rs232.o         \
42         tgi_mode_table.o
43
44 #--------------------------------------------------------------------------
45 # Drivers
46
47 TGIS =
48
49 EMDS =  c128-georam.emd c128-ram.emd c128-reu.emd c128-vdc.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)
61