14 # this dir relative to top dir
15 thisdir = src/wx-console
23 CONSSRCS = main.cpp console_thread.cpp authenticate.c console_conf.c wxbrestorepanel.cpp \
24 wxbmainframe.cpp wxbtableparser.cpp wxbtreectrl.cpp wxblistctrl.cpp wxbutils.cpp
25 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
26 wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o
28 win32 = wx-console_private.res
32 # these are the objects that are changed by the .configure process
35 # wx-config generated by configure
36 CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
37 CONS_LDFLAGS=@WXCONS_LDFLAGS@
45 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
46 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
49 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
50 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
53 #-------------------------------------------------------------------------
54 all: Makefile wx-console
55 @echo "==== Make of wx-console is good ===="
59 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
60 $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
62 win32: wx-console_private.res
65 wx-console_private.res: wx-console_private.rc
66 windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff
69 @$(RMF) $(OBJ) wx-console $(WIN32RES)
75 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
77 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79 # Semi-automatic generation of dependencies:
80 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
81 # and it also includes system headers.
82 # `semi'-automatic since dependencies are generated at distribution time.
85 @$(MV) Makefile Makefile.bak
86 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
87 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
88 @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
89 @if test -f Makefile ; then \
90 $(RMF) Makefile.bak; \
92 $(MV) Makefile.bak Makefile; \
93 echo -e "Something went wrong\n\a"; \
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows