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 \
26 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
27 wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o \
30 win32 = wx-console_private.res
34 # these are the objects that are changed by the .configure process
37 # wx-config generated by configure
38 CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
39 CONS_LDFLAGS=@WXCONS_LDFLAGS@
47 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
48 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
51 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
52 -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
55 #-------------------------------------------------------------------------
56 all: Makefile wx-console
57 @echo "==== Make of wx-console is good ===="
61 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
62 $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
64 win32: wx-console_private.res
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) $(CONSOBJS) wx-console $(WIN32RES)
77 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
79 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82 $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console
83 @srcconf=wx-console.conf; \
84 if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
85 destconf=$$srcconf.new; \
86 echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
90 echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
91 ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
94 (cd $(DESTDIR)$(sbindir); $(RMF) wx-console)
95 (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new)
97 # Semi-automatic generation of dependencies:
98 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
99 # and it also includes system headers.
100 # `semi'-automatic since dependencies are generated at distribution time.
103 @$(MV) Makefile Makefile.bak
104 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
105 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
106 @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
107 @if test -f Makefile ; then \
108 $(RMF) Makefile.bak; \
110 $(MV) Makefile.bak Makefile; \
111 echo -e "Something went wrong\n\a"; \
114 # -----------------------------------------------------------------------
115 # DO NOT DELETE: nice dependency list follows