]> git.sur5r.net Git - cc65/blob - libsrc/c64/Makefile
New module fileio-test.c
[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         mouse.o                 \
27         randomize.o             \
28         readjoy.o               \
29         rs232.o                 \
30         tgi_mode_table.o
31
32 TGIS =  c64-320-200-2.tgi
33
34
35 #--------------------------------------------------------------------------
36 # Targets
37
38 all:    $(OBJS) $(TGIS)
39
40 ../runtime/zeropage.o:
41         $(MAKE) -C $(dir $@) $(notdir $@)
42
43
44 clean:
45         @rm -f $(OBJS) $(TGIS:.tgi=.o)
46