Browse Source

+ Some changes to clean mechanism

michael 26 years ago
parent
commit
48340afde3
1 changed files with 13 additions and 5 deletions
  1. 13 5
      install/make/makefile.fpc

+ 13 - 5
install/make/makefile.fpc

@@ -343,9 +343,12 @@ endif
 
 
 # this can be set to 'rtl' when the RTL units are installed
 # this can be set to 'rtl' when the RTL units are installed
 ifndef UNITPREFIX
 ifndef UNITPREFIX
+ifndef inlinux
 UNITPREFIX=units
 UNITPREFIX=units
+else
+UNITPREFIX=linuxunits
+endif
 endif
 endif
-
 # set the directory where to install the units.
 # set the directory where to install the units.
 ifndef UNITINSTALLDIR
 ifndef UNITINSTALLDIR
 ifdef inlinux
 ifdef inlinux
@@ -552,6 +555,7 @@ ifndef NODEFAULTRULES
 
 
 # Create Filenames
 # Create Filenames
 EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
 EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
+EXEOFILES=$(addsuffix $(OEXT),$(EXEOBJECTS))
 UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
 UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
 UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 
 
@@ -622,7 +626,7 @@ ifdef UNITOBJECTS
 ifeq ($(SMARTLINK),YES)
 ifeq ($(SMARTLINK),YES)
 	$(INSTALL) $(LIBPREFIX)$(LIBNAME)$(LIBEXT) $(UNITINSTALLDIR)
 	$(INSTALL) $(LIBPREFIX)$(LIBNAME)$(LIBEXT) $(UNITINSTALLDIR)
 else
 else
-	-$(INSTALL) *$(OEXT) $(UNITINSTALLDIR)
+	-$(INSTALL) $(UNITOFILES) $(UNITINSTALLDIR)
 endif
 endif
 endif
 endif
 
 
@@ -649,12 +653,16 @@ libinstall: staticlibinstall sharedlibinstall
 #####################################################################
 #####################################################################
 
 
 clean:
 clean:
-	-$(DEL) *$(OEXT) *$(ASMEXT) *$(PPUEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) $(PPAS) link.res log
+	-$(DEL) $(UNITOFILES) $(UNITFILES) $(PPAS) link.res log
+ifeq ($(SMARTLINK),YES)
 	-$(DELTREE) *$(SMARTEXT)
 	-$(DELTREE) *$(SMARTEXT)
+endif
 ifdef EXEOBJECTS
 ifdef EXEOBJECTS
-	-$(DEL) $(EXEFILES)
+	-$(DEL) $(EXEFILES) $(EXEOFILES)
+endif
+ifdef EXTRACLEAN
+	-$(DEL) $(EXTRACLEAN)
 endif
 endif
-
 
 
 #####################################################################
 #####################################################################
 # Depend rules
 # Depend rules