Large cummulative patch for pic16 port.
[fw/sdcc] / device / lib / pic16 / libc / stdlib / 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    =       atof \
17                 atoi \
18                 atol \
19                 calloc \
20                 free \
21                 ltoa \
22                 malloc \
23                 realloc
24
25
26 CFILES  = $(patsubst %,%.c,$(SRCS))
27 OFILES  = $(patsubst %.c,%.o,$(CFILES))
28
29
30 DEBUG=
31 #COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --no-peep
32 COMPILE_FLAGS   += $(DEBUG)
33
34 CFILES  = $(patsubst %,%.c,$(SRCS))
35 OFILES  = $(patsubst %.c,%.o,$(CFILES))
36
37 %.o: %.c
38         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
39
40 build-library: $(OFILES)
41