* .version: bumped version number to 2.4.8
[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 LOCAL_FLAGS     =
39 COMPILE_FLAGS   += $(LOCAL_FLAGS)
40
41 include ../Makefile.rules
42
43 all: build-library
44
45 build-library: $(LIB)
46
47 $(LIB): $(OFILES) clean-intermediate-no-asm
48         @echo Creating $(LIB) ...
49         @for object in $(OFILES) ; do \
50                 if [ ! -e $(LIB) ]; then \
51                         $(AR) -c $(LIB) $$object ; \
52                 else \
53                         $(AR) -r $(LIB) $$object ; \
54                 fi; \
55                 echo adding $$object ; \
56         done ;