]> git.sur5r.net Git - cc65/blob - libsrc/c128/Makefile
Added C128 extended memory driver for memory in bank #1
[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         rs232.o         \
41         tgi_mode_table.o
42
43 #--------------------------------------------------------------------------
44 # Drivers
45
46 TGIS =
47
48 EMDS =  c128-georam.emd c128-ram.emd c128-reu.emd
49
50 #--------------------------------------------------------------------------
51 # Targets
52
53 all:    $(OBJS) $(EMDS) $(TGIS)
54
55 ../runtime/zeropage.o:
56         $(MAKE) -C $(dir $@) $(notdir $@)
57
58 clean:
59         @rm -f $(OBJS)
60