]> git.sur5r.net Git - cc65/blob - libsrc/lynx/Makefile
Removed an unused .import
[cc65] / libsrc / lynx / 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 %.joy:  %.o ../runtime/zeropage.o
22         @$(LD) -t module -o $@ $^
23
24 %.mou:  %.o ../runtime/zeropage.o
25         @$(LD) -t module -o $@ $^
26
27 %.ser:  %.o ../runtime/zeropage.o
28         @$(LD) -t module -o $@ $^
29
30 %.tgi:  %.o ../runtime/zeropage.o
31         @$(LD) -t module -o $@ $^
32
33 #--------------------------------------------------------------------------
34 # Object files
35
36 OBJS =  crt0.o
37
38 #--------------------------------------------------------------------------
39 # Drivers
40
41 EMDS =
42
43 JOYS =
44
45 MOUS =
46
47 SERS =
48
49 TGIS = 
50
51 #--------------------------------------------------------------------------
52 # Targets
53
54 .PHONY: all clean zap
55
56 all:    $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
57
58 ../runtime/zeropage.o:
59         $(MAKE) -C $(dir $@) $(notdir $@)
60
61 clean:
62         @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
63
64 zap:    clean
65         @$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
66