ソースを参照

+ makefiles adapted for shared library support

git-svn-id: trunk@2257 -
florian 19 年 前
コミット
210f9c07d6

+ 10 - 1
Makefile.fpc

@@ -92,7 +92,11 @@ ifdef SNAPSHOT
 ALLTARGET=all
 else
 ifndef ALLTARGET
+SHAREDTARGETS=linux
 SMARTTARGETS=win32 go32v2 linux freebsd netbsd openbsd netware netwlibc
+ifneq ($(findstring $(OS_TARGET),$(SHAREDTARGETS)),)
+ALLTARGET=shared
+else
 ifneq ($(findstring $(OS_TARGET),$(SMARTTARGETS)),)
 ALLTARGET=smart
 else
@@ -100,7 +104,7 @@ ALLTARGET=all
 endif
 endif
 endif
-
+endif
 # Prefix for units
 ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
 PKGUNITSPRE=u
@@ -212,12 +216,17 @@ packages_base_all:
 packages_base_smart:
         $(MAKE) -C packages base_smart
 
+packages_base_shared:
+        $(MAKE) -C packages base_shared
+
 packages_extra_all:
         $(MAKE) -C packages extra_all
 
 packages_extra_smart:
         $(MAKE) -C packages extra_smart
 
+packages_extra_shared:
+        $(MAKE) -C packages extra_shared
 
 ##########################################################################
 # Packaging

+ 2 - 0
compiler/utils/Makefile.fpc

@@ -22,6 +22,8 @@ tools=data2inc
 [default]
 fpcdir=../..
 
+[shared]
+build=n
 
 [rules]
 #

+ 0 - 3
fcl/Makefile.fpc

@@ -55,9 +55,6 @@ includedir_beos=posix
 includedir_emx=os2
 sourcedir=$(OS_TARGET) inc
 
-[libs]
-libname=fpfcl
-
 [install]
 fpcpackage=y
 

+ 1 - 0
fv/Makefile.fpc

@@ -30,3 +30,4 @@ fpcdir=..
 
 [rules]
 buildfv$(PPUEXT): $(wildcard *.pas *.inc)
+

+ 3 - 0
packages/base/ibase/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/base/libc/Makefile.fpc

@@ -17,3 +17,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/base/mysql/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/base/odbc/Makefile.fpc

@@ -17,3 +17,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/base/oracle/Makefile.fpc

@@ -23,3 +23,6 @@ fpcdir=../../..
 # libclntsh.*,libnlsrtl3.*
 #[compiler]
 #libdir=/usr/local/oracle8cli/lib
+
+[shared]
+build=n

+ 3 - 0
packages/base/postgres/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/base/sqlite/Makefile.fpc

@@ -16,3 +16,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/bfd/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/fftw/Makefile.fpc

@@ -20,3 +20,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/forms/Makefile.fpc

@@ -20,3 +20,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/gdbm/Makefile.fpc

@@ -20,6 +20,9 @@ fpcpackage=y
 [default]
 fpcdir=../../..
 
+[shared]
+build=n
+
 [rules]
 testgdbm$(EXEEXT): testgdbm.pp gdbm$(PPUEXT)
 

+ 3 - 0
packages/extra/ggi/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 2 - 0
packages/extra/gnome1/Makefile.fpc

@@ -12,3 +12,5 @@ fpcsubdir=packages
 [default]
 fpcdir=../../..
 
+[shared]
+build=n

+ 2 - 4
packages/extra/gnome1/gconf/Makefile.fpc

@@ -17,16 +17,14 @@ exampledirs=examples
 [compiler]
 sourcedir=gconf gconfclient
 
-[libs]
-libname=libfpgconf.so
-libversion=2.0.0
-
 [install]
 fpcpackage=y
 
 [default]
 fpcdir=../../../..
 
+[shared]
+build=n
 
 [rules]
 gconf$(PPUEXT): $(wildcard gconf/gconf*.pp) 

+ 3 - 0
packages/extra/gnome1/gconf/examples/Makefile.fpc

@@ -16,3 +16,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../../../..
+
+[shared]
+build=n

+ 2 - 3
packages/extra/gnome1/gnome/Makefile.fpc

@@ -16,9 +16,8 @@ units=libart libgnome libgnomeui
 [compiler]
 sourcedir=libart_lgpl libgnome libgnomeui
 
-[libs]
-libname=libfpgnome1.so
-libversion=2.0.0
+[shared]
+build=n
 
 [install]
 fpcpackage=y

+ 3 - 0
packages/extra/gnome1/zvt/Makefile.fpc

@@ -26,3 +26,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/gnome1/zvt/examples/Makefile.fpc

@@ -16,3 +16,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../../../..
+
+[shared]
+build=n

+ 2 - 5
packages/extra/gtk/Makefile.fpc

@@ -17,17 +17,14 @@ exampledirs=examples
 [compiler]
 sourcedir=glib gdk gtk
 
-
-[libs]
-libname=libfpgtk.so
-libversion=2.0.0
-
 [install]
 fpcpackage=y
 
 [default]
 fpcdir=../../..
 
+[shared]
+build=n
 
 [rules]
 glib$(PPUEXT): $(wildcard glib/glib*.pp)

+ 3 - 0
packages/extra/gtk/gtkgl/Makefile.fpc

@@ -17,3 +17,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/imlib/Makefile.fpc

@@ -22,3 +22,6 @@ fpcsubdir=packages
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/libgd/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/libpng/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/newt/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/tcl/Makefile.fpc

@@ -18,3 +18,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n

+ 3 - 0
packages/extra/x11/Makefile.fpc

@@ -17,3 +17,6 @@ fpcpackage=y
 
 [default]
 fpcdir=../../..
+
+[shared]
+build=n