X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic16%2Flibsdcc%2FMakefile;h=b43473ee04e343fba2ecd3f92f0e599cb85ad456;hb=5979bbd157a5f3cd8018aed666e4dd41a3e08edf;hp=bd6b60d36dceabed1acd0d996c65ea82670aaa71;hpb=8332acb8ebcdd1490779c012db097c74c71d039e;p=fw%2Fsdcc diff --git a/device/lib/pic16/libsdcc/Makefile b/device/lib/pic16/libsdcc/Makefile index bd6b60d3..b43473ee 100644 --- a/device/lib/pic16/libsdcc/Makefile +++ b/device/lib/pic16/libsdcc/Makefile @@ -1,58 +1,7 @@ -# -# Makefile - Makefile to build pic16 support libraries -# -# This file is part of the GNU PIC Library. -# -# January, 2004 -# The GNU PIC Library is maintained by, -# Vangelis Rokas -# -# $Id$ -# -# +topsrcdir=.. +SUBDIRS = char fixed16x16 float gptr int long + # lregs +MKLIB = libsdcc.lib -DIRS = char \ - int \ - long \ - float \ - gptr - - -LIB = libsdcc.lib - -all: build-libraries - -make-target: build-libraries - -build-libraries: - for dir in $(DIRS) ; do \ - $(MAKE) -C $$dir ; \ - done; - gplib -c $(LIB) char/*.o int/*.o long/*.o float/*.o gptr/*.o - mv -v $(LIB) ../bin - - -clean-intermediate: - @for dir in $(DIRS) ; do \ - $(MAKE) -C $$dir clean-intermediate ; \ - done ; - -clean: - for dir in $(DIRS) ; do \ - $(MAKE) -C $$dir clean; \ - done ; - rm -fv $(LIB) - - -real-clean: clean - find -name *.adb -print | xargs -- rm -fv ; - find -name *.p -print | xargs -- rm -fv ; - find -name *.d -print | xargs -- rm -fv ; - find -name *.dump* -print | xargs -- rm -fv ; - - -dep: - for dir in $(DIRS) ; do \ - $(MAKE) -C $$dir dep; \ - done +include $(topsrcdir)/Makefile.subdir