* device/lib/Makefile.in: removed comment line with model-pic16,
[fw/sdcc] / device / lib / pic16 / libsdcc / long / Makefile
1 #
2 # Makefile - Makefile to build pic16 long 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     = sdcclong.lib
16
17 SRCS    =       divslong \
18                 divulong \
19                 modslong \
20                 modulong \
21                 mullong
22
23 include ../Makefile.rules
24
25
26 all: build-library
27
28 build-library: $(LIB)
29
30 $(LIB): $(OFILES)
31         @echo Creating $(LIB) ...
32         @for object in $(OFILES) ; do \
33                 if [ ! -e $(LIB) ]; then \
34                         $(AR) -c $(LIB) $$object ; \
35                 else \
36                         $(AR) -r $(LIB) $$object ; \
37                 fi; \
38                 echo adding $$object ; \
39         done ;