|
|
| |
# Here, $(SONAME) resolves to the soname for the shared library being created. | # Here, $(SONAME) resolves to the soname for the shared library being created. |
# The following are gcc options. This works on GNU libc systems. | # The following are gcc options. This works on GNU libc systems. |
LDSHLIB = -shared -Wl,-soname,$(SONAME) |
#LDSHLIB = -shared -Wl,-soname,$(SONAME) |
# You need -nostart instead of -shared on BeOS. Though the BeOS compiler is | # You need -nostart instead of -shared on BeOS. Though the BeOS compiler is |
# ostensibly gcc, it has the -nostart option, which is not mentioned in gcc | # ostensibly gcc, it has the -nostart option, which is not mentioned in gcc |
# documentation and doesn't exist in at least one non-BeOS installation. | # documentation and doesn't exist in at least one non-BeOS installation. |
|
|
#AIX Visual Age C: | #AIX Visual Age C: |
#LDSHLIB = -qmkshrobj | #LDSHLIB = -qmkshrobj |
| |
|
LDSHLIB = -dynamiclib -install_name /usr/lib/netpbm/libnetpbm.$(MAJ).dylib |
|
# note this is a hack not to use $(NETPBM_RUNTIME_PATH) because if we set it the script thinks we want to use -rpath on the linker! |
# LDRELOC is the command to combine two .o files (relocateable object files) | # LDRELOC is the command to combine two .o files (relocateable object files) |
# into a single .o file that can later be linked into something else. NONE | # into a single .o file that can later be linked into something else. NONE |
# means no such command is available. | # means no such command is available. |
|
|
# compiler/linker). Build-time linking fails without it. I don't | # compiler/linker). Build-time linking fails without it. I don't |
# know why -- history seems to be repeating itself. 2005.02.23. | # know why -- history seems to be repeating itself. 2005.02.23. |
| |
CFLAGS_SHLIB = |
#CFLAGS_SHLIB = |
# Solaris or SunOS with gcc, and NetBSD: | # Solaris or SunOS with gcc, and NetBSD: |
#CFLAGS_SHLIB = -fpic | #CFLAGS_SHLIB = -fpic |
#CFLAGS_SHLIB = -fPIC | #CFLAGS_SHLIB = -fPIC |
|
|
#CFLAGS_SHLIB = -Kpic | #CFLAGS_SHLIB = -Kpic |
#CFLAGS_SHLIB = -KPIC | #CFLAGS_SHLIB = -KPIC |
| |
|
CFLAGS_SHLIB = -fno-common |
|
|
# SHLIB_CLIB is the link option to include the C library in a shared library, | # SHLIB_CLIB is the link option to include the C library in a shared library, |
# normally "-lc". On typical systems, this serves no purpose. On some, | # normally "-lc". On typical systems, this serves no purpose. On some, |
# though, it causes information about which C library to use to be recorded | # though, it causes information about which C library to use to be recorded |
|
|
#Netpbm library functions. The value is used only in make file tests. | #Netpbm library functions. The value is used only in make file tests. |
# "unixshared" means a unix-style shared library, typically named like | # "unixshared" means a unix-style shared library, typically named like |
# libxyz.so.2.3 | # libxyz.so.2.3 |
NETPBMLIBTYPE = unixshared |
#NETPBMLIBTYPE = unixshared |
# "unixstatic" means a unix-style static library, (like libxyz.a) | # "unixstatic" means a unix-style static library, (like libxyz.a) |
#NETPBMLIBTYPE = unixstatic | #NETPBMLIBTYPE = unixstatic |
# "dll" means a Windows DLL shared library | # "dll" means a Windows DLL shared library |
|
|
# "dylib" means a Darwin/Mac OS shared library | # "dylib" means a Darwin/Mac OS shared library |
#NETPBMLIBTYPE = dylib | #NETPBMLIBTYPE = dylib |
| |
|
NETPBMLIBTYPE = dylib |
|
|
#NETPBMLIBSUFFIX is the suffix used on whatever kind of library is | #NETPBMLIBSUFFIX is the suffix used on whatever kind of library is |
#selected above. All this is used for is to construct library names. | #selected above. All this is used for is to construct library names. |
#The make files never examine the actual value. | #The make files never examine the actual value. |
NETPBMLIBSUFFIX = so |
#NETPBMLIBSUFFIX = so |
|
|
|
NETPBMLIBSUFFIX = dylib |
| |
# "a" is the suffix for unix-style static libraries. It is also | # "a" is the suffix for unix-style static libraries. It is also |
# traditionally used for shared libraries on AIX. The Visual Age C | # traditionally used for shared libraries on AIX. The Visual Age C |
|
|
#and installed in addition to whatever library type you specified by | #and installed in addition to whatever library type you specified by |
#NETPBMLIBTYPE. If NETPBMLIBTYPE specified a static library, | #NETPBMLIBTYPE. If NETPBMLIBTYPE specified a static library, |
#STATICLIB_TOO simply has no effect. | #STATICLIB_TOO simply has no effect. |
STATICLIB_TOO = y |
#STATICLIB_TOO = y |
#STATICLIB_TOO = n |
STATICLIB_TOO = n |
| |
#STATICLIBSUFFIX is the suffix that static libraries have. It's | #STATICLIBSUFFIX is the suffix that static libraries have. It's |
#meaningless if you aren't building static libraries. | #meaningless if you aren't building static libraries. |