Browse Source

+ DEFAULTUNITS to have a make all only compile the units

peter 27 years ago
parent
commit
f1cb31bcf8
3 changed files with 16 additions and 20 deletions
  1. 9 5
      install/make/Makefile
  2. 3 0
      install/make/README
  3. 4 15
      install/make/makefile.fpc

+ 9 - 5
install/make/Makefile

@@ -33,6 +33,10 @@ UNITDIR=
 TARGETDIR=
 UNITTARGETDIR=
 
+# As default make only the units
+#DEFAULTUNITS=1
+
+
 #####################################################################
 # Real targets
 #####################################################################
@@ -40,22 +44,22 @@ UNITTARGETDIR=
 UNITOBJECTS=
 EXEOBJECTS=
 
+
 #####################################################################
 # Include default makefile
 #####################################################################
 
 include $(MAKEFILEFPC)
 
+
 #####################################################################
 # Dependencies
 #####################################################################
 
+
 #
 # $Log$
-# Revision 1.2  1998-11-10 17:56:51  peter
-#   * fixes to build correct again
-#
-# Revision 1.1  1998/10/27 14:20:12  peter
-#   + initial versions
+# Revision 1.3  1998-12-12 19:14:42  peter
+#   + DEFAULTUNITS to have a make all only compile the units
 #
 #

+ 3 - 0
install/make/README

@@ -51,6 +51,9 @@ LIBTYPE         can be set to shared or static to set the library type you
                 and turns it off.
                 Example: LIBTYPE=shared LIBNAME=objpas
 
+DEFAULTUNITS    if this is set then a 'make all' will only compile the units
+                and not the exes
+
 
 Location:
 ---------

+ 4 - 15
install/make/makefile.fpc

@@ -534,7 +534,11 @@ UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 
 .SUFFIXES : $(EXEEXT) $(PPUEXT) $(PASEXT)
 
+ifdef DEFAULTUNITS
+all: units
+else
 all: units exes
+endif
 
 units: $(UNITFILES)
 
@@ -657,18 +661,3 @@ ifdef ASFILES
 	@echo  As  files are $(ASFILES)
 endif
 
-#
-# $Log$
-# Revision 1.4  1998-11-10 17:56:53  peter
-#   * fixes to build correct again
-#
-# Revision 1.3  1998/11/10 15:06:25  peter
-#   + PREFIXINSTALLDIR to allow /usr/local and pwd/debian/tmp
-#
-# Revision 1.2  1998/10/28 00:14:13  peter
-#   * argh.. ifndef winnt -> ifdef winnt  :(
-#
-# Revision 1.1  1998/10/27 14:23:59  peter
-#   + makefiles
-#
-#