INSTALL = @INSTALL@
CP = @CP@
+ifeq ($(shell uname -s),SunOS)
+CP_U = $(CP)
+else
+CP_U = $(CP) -p
+endif
+
PRJDIR = ../..
INCDIR = $(PRJDIR)/device/include
ifndef PORTINCDIR
# 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
+ $(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' -or -name '*.dump*' -or -name '*.sym' -or -name '*.o' -or -name '*.lst' -or -name '*.asm' -or -name 'CVS'`
# Deleting all the installed files