X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2FMakefile.in;h=402174156fac11ff53899205a4b4bf697533e07c;hb=018a6f8c8ded8202afb6e3eb0becf7b98e76a93c;hp=a41c7d178ca02975328293b3b34aae9cbd15feee;hpb=98ca7252ad3af98c76e83ca12312a17d623c1cc7;p=fw%2Fsdcc diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index a41c7d17..40217415 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -27,14 +27,15 @@ ifndef PORTINCDIR PORTINCDIR = $(INCDIR)/mcs51 endif -CC = $(top_builddir)bin/sdcc -CPP = $(top_builddir)bin/sdcpp +CC = $(top_builddir)/bin/sdcc +CPP = $(top_builddir)/bin/sdcpp prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ +datarootdir = @datarootdir@ includedir = @includedir@ mandir = @mandir@ man1dir = $(mandir)/man1 @@ -90,7 +91,7 @@ SOURCES = _autobaud.c _bp.c _decdptr.c \ _strncpy.c _strpbrk.c _strrchr.c _strspn.c \ _strstr.c _strtok.c \ _memcmp.c _memcpy.c _memmove.c _memset.c \ - calloc.c malloc.c realloc.c free.c \ + _heap.c calloc.c malloc.c realloc.c free.c \ printf_large.c sprintf.c vprintf.c puts.c gets.c \ printf_fast.c printf_fast_f.c printf_tiny.c printfl.c \ assert.c time.c bpx.c \ @@ -151,7 +152,7 @@ XA51SOURCES = _atof.c _atoi.c _atol.c _schar2fs.c \ _strncpy.c _strpbrk.c _strrchr.c _strspn.c \ _strstr.c _strtok.c \ _uchar2fs.c _uint2fs.c _ulong2fs.c \ - calloc.c malloc.c realloc.c free.c \ + _heap.c calloc.c malloc.c realloc.c free.c \ puts.c gets.c \ printf_large.c puts.c gets.c \ assert.c time.c \ @@ -182,7 +183,7 @@ HC08SOURCES = \ _strncpy.c _strpbrk.c _strrchr.c _strspn.c \ _strstr.c _strtok.c \ _memcmp.c _memcpy.c _memmove.c _memset.c \ - calloc.c malloc.c realloc.c free.c \ + _heap.c calloc.c malloc.c realloc.c free.c \ printf_large.c sprintf.c vprintf.c puts.c gets.c \ assert.c time.c \ fabsf.c frexpf.c ldexpf.c expf.c powf.c sincosf.c sinf.c \ @@ -235,43 +236,43 @@ all: checkconf $(TARGETS) objects: build-dir $(OBJECTS) port-specific-objects lib-files clean_intermediate models: - if [ "`grep mcs51 $(top_builddir)ports.build`" = mcs51 ]; then \ + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ for model in $(MODELS); do \ $(MAKE) MODELFLAGS="--model-$$model" PORT=$$model PORTINCDIR=$(INCDIR)/mcs51 objects; \ done \ fi small-mcs51-stack-auto: - if [ "`grep mcs51 $(top_builddir)ports.build`" = mcs51 ]; then \ + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ $(MAKE) MODELFLAGS="--model-small --stack-auto" PORT=small PORTDIR=$(BUILDDIR)/small-stack-auto PORTINCDIR=$(INCDIR)/mcs51 objects; \ fi model-mcs51-stack-auto: - if [ "`grep mcs51 $(top_builddir)ports.build`" = mcs51 ]; then \ + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ for model in $(MODELS); do \ $(MAKE) MODELFLAGS="--model-$$model --stack-auto" PORT=$$model PORTDIR=$(BUILDDIR)/$$model-stack-auto PORTINCDIR=$(INCDIR)/mcs51 objects; \ done \ fi model-mcs51-xstack-auto: - if [ "`grep mcs51 $(top_builddir)ports.build`" = mcs51 ]; then \ + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ for model in $(MODELS); do \ $(MAKE) MODELFLAGS="--model-$$model --stack-auto --xstack" PORT=$$model PORTDIR=$(BUILDDIR)/$$model-xstack-auto PORTINCDIR=$(INCDIR)/mcs51 objects; \ done \ fi model-ds390: - if [ "`grep ds390 $(top_builddir)ports.build`" = ds390 ]; then \ + if [ "`grep ds390 $(top_builddir)/ports.build`" = ds390 ]; then \ $(MAKE) MODELFLAGS="-mds390" PORT=ds390 PORTINCDIR=$(INCDIR)/mcs51 objects; \ fi model-ds400: - if [ "`grep ds400 $(top_builddir)ports.build`" = ds400 ]; then \ + if [ "`grep ds400 $(top_builddir)/ports.build`" = ds400 ]; then \ $(MAKE) MODELFLAGS="-mds400" PORT=ds400 PORTINCDIR=$(INCDIR)/mcs51 objects; \ fi model-xa51: - if [ "`grep xa51 $(top_builddir)ports.build`" = xa51 ]; then \ + if [ "`grep xa51 $(top_builddir)/ports.build`" = xa51 ]; then \ $(MAKE) MODELFLAGS="-mxa51" PORT=xa51 objects-xa51; \ fi @@ -279,12 +280,12 @@ objects-xa51: build-dir $(XA51OBJECTS) port-specific-objects cd $(PORTDIR); ls *$(OEXT) > lib$(PORT).lib model-z80: - if [ "`grep z80 $(top_builddir)ports.build`" = z80 ]; then \ + if [ "`grep z80 $(top_builddir)/ports.build`" = z80 ]; then \ $(MAKE) MODELFLAGS="-mz80" PORT=z80 objects-z80 OEXT=.o; \ fi model-gbz80: - if [ "`grep z80 $(top_builddir)ports.build`" = z80 ]; then \ + if [ "`grep z80 $(top_builddir)/ports.build`" = z80 ]; then \ $(MAKE) MODELFLAGS="-mgbz80" PORT=gbz80 objects-z80 OEXT=.o; \ fi @@ -292,7 +293,7 @@ objects-z80: build-dir $(Z80OBJECTS) port-specific-objects clean_intermediate cd $(PORTDIR); ls *$(OEXT) > $(PORT).lib model-hc08: - if [ "`grep hc08 $(top_builddir)ports.build`" = hc08 ]; then \ + if [ "`grep hc08 $(top_builddir)/ports.build`" = hc08 ]; then \ $(MAKE) MODELFLAGS="-mhc08" PORT=hc08 objects-hc08; \ fi @@ -300,7 +301,7 @@ objects-hc08: build-dir $(HC08OBJECTS) port-specific-objects clean_intermediate cd $(PORTDIR); ls *$(OEXT) > $(PORT).lib model-pic16: - if [ "`grep pic16 $(top_builddir)ports.build`" = pic16 ]; then \ + if [ "`grep pic16 $(top_builddir)/ports.build`" = pic16 ]; then \ $(MAKE) MODELFLAGS="-mpic16" PORT=pic16 OEXT=.lib objects-pic16; \ fi @@ -309,7 +310,7 @@ objects-pic16: build-dir port-specific-objects-pic16 clean_intermediate-pic16 # yes, we do reuse the *-pic16 rules for pic14 model-pic14: - if [ "`grep pic $(top_builddir)ports.build | grep -v pic16`" = pic ]; then \ + if [ "`grep pic $(top_builddir)/ports.build | grep -v pic16`" = pic ]; then \ $(MAKE) MODELFLAGS="-mpic14" PORT=pic OEXT=.lib objects-pic16; \ fi @@ -354,13 +355,13 @@ install: all installdirs \( -name '*.rel' -o -name '*.dump*' -o -name '*.sym' -o -name '*.o' -o -name '*.lib' -o \ -name '*.lst' -o -name '*.asm' -o -name '.svn' -o -name 'build' -o -name 'bin' -o \ -name 'Makefile*' \) \ - -exec rm -r {} \; ; \ + -exec rm -rf {}+ \; ; \ done find $(sdcc_libdir)/src/mcs51 -depth \ \( -name '*.rel' -o -name '*.dump*' -o -name '*.sym' -o -name '*.o' -o -name '*.lib' -o \ -name '*.lst' -o -name '.svn' -o -name 'build' -o -name 'bin' -o \ -name 'Makefile*' \) \ - -exec rm -r {} \; + -exec rm -rf {}+ \; # Deleting all the installed files # -------------------------------- @@ -419,7 +420,7 @@ $(PORTDIR)/%$(OEXT): %.c # Remaking configuration # ---------------------- checkconf: - @if [ -f $(top_builddir)devel ]; then\ + @if [ -f $(top_builddir)/devel ]; then\ $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" \ freshconf;\ fi