INSTALL = @INSTALL@
CP = @CP@
+ifeq ($(shell uname -s),Linux)
+CP_U = $(CP) -u
+else
+CP_U = $(CP)
+endif
+
PRJDIR = ../..
INCDIR = $(PRJDIR)/device/include
ifndef PORTINCDIR
-if [ -d $(PORT) ]; then \
mkdir -p $(PORT)/bin; \
$(MAKE) -C $(PORT); \
- cp -f $(PORT)/bin/*.o $(PORT)/bin/*.lib $(PORTDIR); \
+ cp -f $(PORT)/bin/*.* $(PORTDIR); \
fi
lib-files:
# Compiling and installing everything and runing test
# ---------------------------------------------------
install: all installdirs
- cp -r -u $(BUILDDIR)/* $(sdcc_libdir)
- cp -r -u ds390 ds400 gbz80 z80 hc08 *.c $(sdcc_libdir)/src
- rm -r `find $(sdcc_libdir)/src -name '*.rel' -or -name '*.dump*' -or -name '*.sym' -or -name '*.o' -or -name '*.lst' -or -name '*.asm' -or -name 'CVS'`
+ $(CP_U) -r $(BUILDDIR)/* $(sdcc_libdir)
+ $(CP_U) -r ds390 ds400 gbz80 z80 hc08 *.c $(sdcc_libdir)/src
+ rm -r `find $(sdcc_libdir)/src -name '*.rel' -o -name '*.dump*' -o -name '*.sym' -o -name '*.o' -o -name '*.lst' -o -name '*.asm' -o -name 'CVS'`
# Deleting all the installed files
# --------------------------------