]> git.sur5r.net Git - cc65/blob - libsrc/atmos/Makefile
Added routines to handle command line params
[cc65] / libsrc / atmos / 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  =       crt0.o          \
23                 mainargs.o      \
24                 systime.o
25
26 #--------------------------------------------------------------------------
27 # Targets
28
29 .PHONY: all clean zap
30
31 all:    $(C_OBJS) $(S_OBJS)
32
33 clean:
34         @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
35
36 zap:    clean
37