# # Makefile - Makefile to build pic16 float support library # # This file is part of the GNU PIC Library. # # January, 2004 # The GNU PIC Library is maintained by, # Vangelis Rokas # # $Id$ # # LIB = sdccfloat.lib SRCS = fs2schar \ fs2sint \ fs2slong \ fs2uchar \ fs2uint \ fs2ulong \ fsadd \ fsdiv \ fseq \ fsgt \ fslt \ fsmul \ fsneq \ fssub \ schar2fs \ sint2fs \ slong2fs \ uchar2fs \ uint2fs \ ulong2fs include ../Makefile.rules CFLAGS += -I$(LIBC_INC_DIR) all: build-library build-library: $(LIB) $(LIB): $(OFILES) @echo Creating $(LIB) ... @for object in $(OFILES) ; do \ if [ ! -e $(LIB) ]; then \ $(AR) -c $(LIB) $$object ; \ else \ $(AR) -r $(LIB) $$object ; \ fi; \ echo adding $$object ; \ done ;