* device/lib/pic16/libsdcc/Makefile: added lregs directory in
[fw/sdcc] / device / lib / pic16 / libsdcc / float / Makefile
1 #
2 # Makefile - Makefile to build pic16 float 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     = sdccfloat.lib
16
17 SRCS    =       fs2schar \
18                 fs2sint \
19                 fs2slong \
20                 fs2uchar \
21                 fs2uint \
22                 fs2ulong \
23                 fsadd \
24                 fsdiv \
25                 fseq \
26                 fsgt \
27                 fslt \
28                 fsmul \
29                 fsneq \
30                 fssub \
31                 schar2fs \
32                 sint2fs \
33                 slong2fs \
34                 uchar2fs \
35                 uint2fs \
36                 ulong2fs
37
38
39 include ../Makefile.rules
40
41 all: build-library
42
43 build-library: $(LIB)
44
45 $(LIB): $(OFILES)
46         @echo Creating $(LIB) ...
47         @for object in $(OFILES) ; do \
48                 if [ ! -e $(LIB) ]; then \
49                         $(AR) -c $(LIB) $$object ; \
50                 else \
51                         $(AR) -r $(LIB) $$object ; \
52                 fi; \
53                 echo adding $$object ; \
54         done ;