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
25 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
26 wxbmainframe.o wxbtableparser.o wxbtreectrl.o
28 @if test "@DISTNAME@" = "cygwin" then \
29 RES = wx-console_private.res; \
34 # these are the objects that are changed by the .configure process
40 # wx-config generated by configure
41 CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
42 CONS_LDFLAGS=@WXCONS_LDFLAGS@
50 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
51 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
54 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
55 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
58 #-------------------------------------------------------------------------
59 all: Makefile wx-console
60 @echo "==== Make of wx-console is good ===="
64 wx-console: $(CONSOBJS) $(RES) ../lib/libbac.a
65 $(CXX) $(CONSOBJS) $(RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
67 wx-console_private.res: wx-console_private.rc
68 windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff
71 @$(RMF) $(OBJ) wx-console
77 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
79 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
81 # Semi-automatic generation of dependencies:
82 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
83 # and it also includes system headers.
84 # `semi'-automatic since dependencies are generated at distribution time.
87 @$(MV) Makefile Makefile.bak
88 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
89 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
90 @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
91 @if test -f Makefile ; then \
92 $(RMF) Makefile.bak; \
94 $(MV) Makefile.bak Makefile; \
95 echo -e "Something went wrong\n\a"; \
98 # -----------------------------------------------------------------------
99 # DO NOT DELETE: nice dependency list follows