Small change to clean up the way flags are set and to prepare for addition

of shared libraries.
This commit is contained in:
W. Eric Norum
2002-03-26 18:00:13 +00:00
parent 0811e1d433
commit e8536ccaf7
3 changed files with 22 additions and 3 deletions

View File

@@ -2,4 +2,4 @@
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.Darwin
SHARED_LIBRARY=NO
SHARED_LIBRARIES=NO

View File

@@ -18,6 +18,13 @@ ARCH_CLASS = ppc
#
SHARED_LIBRARIES=NO
#
# Special flags for Darwin
# No fancy precompiled headers
# No common blocks (as required when going to shared libraries)
#
OP_SYS_CFLAGS += -no-cpp-precomp -fno-common
#
# Need to get some fink-installed packages (readline, etc.).
# If you don't have readline on your system you must remove
@@ -27,3 +34,9 @@ SHARED_LIBRARIES=NO
OP_SYS_CPPFLAGS += -I$(FINK_DIR)/include
OP_SYS_LDFLAGS += -L$(FINK_DIR)/lib
OP_SYS_LDLIBS += -lreadline
#
# Stuff that will be needed when going to shared libraries
#
SHRLIB_LDFLAGS = -dynamiclib
SHRLIB_SUFFIX = $(addprefix .,$(SHRLIB_VERSION)).dylib

View File

@@ -11,5 +11,11 @@ include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
CC = $(GNU_BIN)/cc -no-cpp-precomp
CCC = $(GNU_BIN)/c++ -no-cpp-precomp
CC = $(GNU_BIN)/cc
CCC = $(GNU_BIN)/c++
#
# Position-independent code is the default on Darwin.
#
CODE_CFLAGS =
CODE_CXXFLAGS =