]> git.sur5r.net Git - cc65/blob - libsrc/nes/Makefile
5bc6a5b0ddcf3c3fb960a276086ad583e61d9767
[cc65] / libsrc / nes / 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 #--------------------------------------------------------------------------
18 # Object files
19
20 C_OBJS =
21
22 S_OBJS  =       _scrsize.o      \
23                 clock.o         \
24                 color.o         \
25                 cputc.o         \
26                 crt0.o          \
27                 ppu.o           \
28                 ppubuf.o        \
29                 setcursor.o     \
30                 waitvblank.o
31
32 #--------------------------------------------------------------------------
33 # Targets
34
35 .PHONY: all clean zap
36
37 all:    $(C_OBJS) $(S_OBJS)
38
39 clean:
40         @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
41
42 zap:    clean
43