]> git.sur5r.net Git - cc65/blob - libsrc/serial/Makefile
Moving rs232 support to modules
[cc65] / libsrc / serial / Makefile
1 #
2 # Makefile for the serial driver API
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Rules
9
10 %.o:    %.c
11         @$(CC) $(CFLAGS) $<
12         @$(AS) -g -o $@ $(AFLAGS) $(*).s
13
14 %.o:    %.s
15         @$(AS) -g -o $@ $(AFLAGS) $<
16
17 #--------------------------------------------------------------------------
18 # Object files
19
20 C_OBJS =        ser_load.o
21
22 S_OBJS =        ser-kernel.o    \
23                 ser_unload.o
24
25
26 #--------------------------------------------------------------------------
27 # Targets
28
29 .PHONY: all clean zap
30
31 all:    $(C_OBJS) $(S_OBJS)
32
33 clean:
34         @rm -f *~
35         @rm -f $(C_OBJS:.o=.s)
36         @rm -f $(C_OBJS)
37         @rm -f $(S_OBJS)
38
39 zap:    clean
40