* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc] / device / lib / pic16 / libc / stdio / Makefile
1 #
2 # Makefile - Makefile to build pic16 C Library
3 #
4 # This file is part of the GNU PIC Library.
5 #
6 # January, 2004
7 # The GNU PIC Library is maintained by,
8 #       Vangelis Rokas <vrokas@otenet.gr>
9 #
10 # $Id$
11 #
12 #
13
14 include ../Makefile.rules
15
16 SRCS    =       printf_tiny \
17                 printf_small \
18                 printf \
19                 sprintf \
20                 fprintf \
21                 vprintf \
22                 vsprintf \
23                 vfprintf \
24                 strmusart \
25                 strmmssp \
26                 strmgpsim \
27                 strmputchar \
28                 streams
29
30
31 CFILES  = $(patsubst %,%.c,$(SRCS))
32 OFILES  = $(patsubst %.c,%.o,$(CFILES))
33
34
35 DEBUG=
36 #COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --no-peep
37 COMPILE_FLAGS   += $(DEBUG)
38
39 CFILES  = $(patsubst %,%.c,$(SRCS))
40 OFILES  = $(patsubst %.c,%.o,$(CFILES))
41
42 %.o: %.c
43         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
44
45 build-library: $(OFILES)
46