#
CONSSRCS = main.cpp console_thread.cpp authenticate.c console_conf.c wxbrestorepanel.cpp \
- wxbmainframe.cpp wxbtableparser.cpp wxbtreectrl.cpp wxblistctrl.cpp
+ wxbmainframe.cpp wxbtableparser.cpp wxbtreectrl.cpp wxblistctrl.cpp wxbutils.cpp
CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
- wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o
+ wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o
-@if test "@DISTNAME@" = "cygwin" then \
-RES = wx-console_private.res; \
-else \
-RES = ;\
-fi
+win32 = wx-console_private.res
+
+WIN32RES = $(@WIN32@)
# these are the objects that are changed by the .configure process
EXTRAOBJS = @OBJLIST@
-CONS_INC=
-CONS_LIBS=
-
# wx-config generated by configure
CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
CONS_LDFLAGS=@WXCONS_LDFLAGS@
@echo " "
-wx-console: $(CONSOBJS) $(RES) ../lib/libbac.a
- $(CXX) $(CONSOBJS) $(RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
+wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
+ $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
+
+win32: wx-console_private.res
+
wx-console_private.res: wx-console_private.rc
windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff
clean:
- @$(RMF) $(OBJ) wx-console
+ @$(RMF) $(OBJ) wx-console $(WIN32RES)
distclean: clean
$(RMF) Makefile