Large cummulative patch for pic16 port.
[fw/sdcc] / device / lib / pic16 / libc / string / 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    =       memchr  \
17                 memcmp  \
18                 memcpy  \
19                 memccpy \
20                 memmove \
21                 memrchr \
22                 memset  \
23                 strcat  \
24                 strchr  \
25                 strcmp  \
26                 strcpy  \
27                 strcspn \
28                 strlen  \
29                 strlwr  \
30                 strncat \
31                 strncmp \
32                 strncpy \
33                 strpbrk \
34                 strrchr \
35                 strspn  \
36                 strstr  \
37                 strtok  \
38                 strupr  \
39                 memchrpgm \
40                 memchrram \
41                 memcpypgm2ram \
42                 memcpyram2ram \
43
44
45 CFILES  = $(patsubst %,%.c,$(SRCS))
46 OFILES  = $(patsubst %.c,%.o,$(CFILES))
47
48
49 DEBUG=
50 #COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --no-peep
51 COMPILE_FLAGS   += $(DEBUG)
52
53 CFILES  = $(patsubst %,%.c,$(SRCS))
54 OFILES  = $(patsubst %.c,%.o,$(CFILES))
55
56 %.o: %.c
57         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
58
59 build-library: $(OFILES)
60