# c-compiler stuff
CC = @CC@
-CFLAGS = @CFLAGS@ $(OPTIMISE) $(PROFILE) $(DEBUG)
CPP = @CPP@
+CPPFLAGS=@CPPFLAGS@
+CFLAGS = @CFLAGS@ $(CPPFLAGS) $(OPTIMISE) $(PROFILE) $(DEBUG)
# c++-compiler stuff
CXX = @CXX@
-CXXFLAGS = @CXXFLAGS@ $(OPTIMISE) $(PROFILE) $(DEBUG)
+CXXFLAGS = @CXXFLAGS@ $(CPPFLAGS) $(OPTIMISE) $(PROFILE) $(DEBUG)
CXXCPP = @CXXCPP@
# shared compile stuff
GUI_TK_LIBRARY = @GUI_TK_LIBRARY@
GUI_TK_LINK = @GUI_TK_LINK@
-OPENGL_INCLUDE = @OPENGL_INCLUDE@
-OPENGL_LIBRARY = @OPENGL_LIBRARY@
-OPENGL_LINK = @OPENGL_LINK@
+WX_LINK = @WX_LINK@
THREADS_LINK = @THREADS_LINK@
EXTRA_LINK = @EXTRA_LINK@
# INCLUDES
WX_INCLUDES = \
$(TOOLKIT_DEF) \
--I. \
--I.. \
-I$(WXBASEDIR)/include \
--I$(WXBASEDIR)/src/zlib \
+-I. \
$(GUI_TK_INCLUDE) \
-$(OPENGL_INCLUDE) \
+-I$(WXBASEDIR)/src/zlib \
+-I$(WXBASEDIR)/src/iodbc \
$(X_CFLAGS)
-# -I$(WXBASEDIR)/src/png \
-# -I$(WXBASEDIR)/src/zlib \
-# -I$(WXBASEDIR)/src/gdk_imlib \
-
-WX_LIBS = -L$(GLOBAL_LIB_DIR) -lwx_gtk
-
-OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
+WX_LIBS = -L$(GLOBAL_LIB_DIR) $(WX_LINK)
-GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
+GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) @DL_LIBRARY@
LINK = $(CXX) -o $@
LINK_LIBS= \