# 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@
+WX_LINK = @WX_LINK@
+
OPENGL_INCLUDE = @OPENGL_INCLUDE@
OPENGL_LIBRARY = @OPENGL_LIBRARY@
OPENGL_LINK = @OPENGL_LINK@
-I.. \
-I$(WXBASEDIR)/include \
-I$(WXBASEDIR)/src/zlib \
+-I$(WXBASEDIR)/src/iodbc \
$(GUI_TK_INCLUDE) \
$(OPENGL_INCLUDE) \
$(X_CFLAGS)
# -I$(WXBASEDIR)/src/zlib \
# -I$(WXBASEDIR)/src/gdk_imlib \
-WX_LIBS = -L$(GLOBAL_LIB_DIR) -lwx_gtk
+WX_LIBS = -L$(GLOBAL_LIB_DIR) $(WX_LINK)
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_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= \