* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc] / device / lib / pic16 / libsdcc / char / Makefile
1 #
2 # Makefile - Makefile to build pic16 char support 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
15 LIB     = sdccchar.lib
16
17 SRCS    =       divschar \
18                 divuchar \
19                 modschar \
20                 moduchar
21
22 #SRCS   =       
23
24 #               modschar \
25 #               moduchar
26
27 #AS_SRCS        =       divchar \
28 #               modchar
29
30
31 include ../Makefile.rules
32
33
34 all: build-library
35
36 build-library: $(LIB)
37
38 $(LIB): $(OFILES)
39         @echo Creating $(LIB) ...
40         @for object in $(OFILES) ; do \
41                 if [ ! -e $(LIB) ]; then \
42                         $(AR) -c $(LIB) $$object ; \
43                 else \
44                         $(AR) -r $(LIB) $$object ; \
45                 fi; \
46                 echo -n "$$object " ; \
47         done ;
48         @echo
49