Browse Source

* libtype/libname is by default off

peter 27 years ago
parent
commit
f4aef6babd
1 changed files with 10 additions and 29 deletions
  1. 10 29
      rtl/linux/makefile

+ 10 - 29
rtl/linux/makefile

@@ -37,21 +37,20 @@ CPU=i386
 #CPU=m68k
 #CPU=m68k
 endif
 endif
 
 
-# Do you want smartlinking enabled (YES/NO) ?
-ifndef SMARTLINK
-SMARTLINK=YES
-endif
-
 # Name of library ?
 # Name of library ?
 # If this is set, all units will be put in the same library.
 # If this is set, all units will be put in the same library.
 # If it is empty (default), the units will be left in separate files.
 # If it is empty (default), the units will be left in separate files.
+ifndef LIBNAME
 LIBNAME=
 LIBNAME=
+endif
 #LIBNAME=fpc
 #LIBNAME=fpc
 
 
 # Should the library be shared or static (only if LIBNAME is set).
 # Should the library be shared or static (only if LIBNAME is set).
-# Set this to 'shared' or 'static'.
+# Set this to 'shared' or 'static' to create a librrary
 # Setting this to shared will disable smart linking.
 # Setting this to shared will disable smart linking.
-LIBTYPE=shared
+ifndef  LIBTYPE
+LIBTYPE=
+endif
 
 
 # What compiler to use ?
 # What compiler to use ?
 ifndef PP
 ifndef PP
@@ -128,27 +127,6 @@ override OPT:=$(OPT) -dCRTLIB
 endif
 endif
 
 
 
 
-# Smart linking requested ?
-ifeq ($(SMARTLINK),YES)
-# no use with shared libs.
-ifneq ($(LIBNAME),)
-ifneq ($(LIBTYPE),shared)
-override OPT:=$(OPT) -Xl
-endif
-else
-override OPT:=$(OPT) -Xl
-endif
-endif
-
-ifneq ($(LIBNAME),)
-override OPT:=$(OPT) -o$(LIBNAME)
-ifeq ($(LIBTYPE),shared)
-override OPT:=$(OPT) -CD
-else
-override OPT:=$(OPT) -CS
-endif
-endif
-
 # Define Linux Units
 # Define Linux Units
 SYSTEMPPU=syslinux$(PPUEXT)
 SYSTEMPPU=syslinux$(PPUEXT)
 OBJECTS=strings linux objpas sysutils math\
 OBJECTS=strings linux objpas sysutils math\
@@ -332,7 +310,10 @@ include $(CFG)/makefile.def
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.18  1998-08-16 10:22:57  michael
+# Revision 1.19  1998-08-17 09:30:00  peter
+#   * libtype/libname is by default off
+#
+# Revision 1.18  1998/08/16 10:22:57  michael
 # Added library support, and smartlinking
 # Added library support, and smartlinking
 #
 #
 # Revision 1.17  1998/08/15 17:08:09  peter
 # Revision 1.17  1998/08/15 17:08:09  peter