Define darwin. Changes to avod warnings, OPT flags, and order of includes.

This commit is contained in:
Janet B. Anderson
2005-08-24 21:53:00 +00:00
parent 09adc87364
commit 27438fead6
2 changed files with 16 additions and 6 deletions

View File

@@ -28,16 +28,24 @@ OP_SYS_CFLAGS += -fno-common
CPPSNCFLAGS += -no-cpp-precomp
#
# The following two definitions enable the use of DarwinPorts packages.
# Darwin os definition
#
OP_SYS_CPPFLAGS += -I/opt/local/include
OP_SYS_LDFLAGS += -L/opt/local/lib
OP_SYS_CPPFLAGS += -Ddarwin
#
# The following two definitions enable the use of DarwinPorts packages.
#
OP_SYS_INCLUDES += -I/opt/local/include
# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist
OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /opt/local/lib/*))))
#
# The following two definitions enable the use of Fink packages.
#
OP_SYS_CPPFLAGS += -I/sw/include
OP_SYS_LDFLAGS += -L/sw/lib
OP_SYS_INCLUDES += -I/sw/include
# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist
OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /sw/lib/*))))
#
# Libraries for command-line editing.

View File

@@ -9,4 +9,6 @@
#
# Other local options
#
OP_SYS_CFLAGS += -g
OPT_CFLAGS_YES += -g
OPT_CXXFLAGS_YES += -g
COMMANDLINE_LIBRARY = READLINE