]> git.sur5r.net Git - cc65/blob - libsrc/c64/Makefile
Use external symbols for the CBM kernal jump table functions. This allows
[cc65] / libsrc / c64 / Makefile
1 #
2 # makefile for CC65 runtime library
3 #
4
5 .SUFFIXES: .o .s .c
6
7 %.o:    %.c
8         @$(CC) $(CFLAGS) $<
9         @$(AS) -o $@ $(AFLAGS) $(*).s
10
11 %.o:    %.s
12         @$(AS) -g -o $@ $(AFLAGS) $<
13
14 %.tgi:  %.o ../runtime/zeropage.o
15         @$(LD) -t module -o $@ $^
16
17 OBJS =  _scrsize.o              \
18         break.o                 \
19         crt0.o                  \
20         cgetc.o                 \
21         clrscr.o                \
22         color.o                 \
23         conio.o                 \
24         cputc.o                 \
25         kbhit.o                 \
26         kernal.o                \
27         mouse.o                 \
28         randomize.o             \
29         readjoy.o               \
30         rs232.o                 \
31         tgi_mode_table.o
32
33 TGIS =  c64-320-200-2.tgi
34
35
36 #--------------------------------------------------------------------------
37 # Targets
38
39 all:    $(OBJS) $(TGIS)
40
41 ../runtime/zeropage.o:
42         $(MAKE) -C $(dir $@) $(notdir $@)
43
44
45 clean:
46         @rm -f $(OBJS) $(TGIS:.tgi=.o)
47