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 ===="
60 # Mac OS X application bundle
61 # See http://216.239.59.104/search?q=cache:a61SGKgoHSQJ:wiki.wxwidgets.org/wiki.pl%3FWxMac_Issues+wxmac+%22application+bundle%22&hl=fr
63 wx-console.app: wx-console
65 -mkdir wx-console.app/Contents
66 -mkdir wx-console.app/Contents/MacOS
67 -mkdir wx-console.app/Contents/Resources
68 -mkdir wx-console.app/Contents/Resources/English.lproj
69 echo -n 'APPL????' > wx-console.app/Contents/PkgInfo
70 mv wx-console wx-console.app/Contents/MacOS/wx-console
71 cp wx-console.conf wx-console.app/Contents/MacOS/wx-console.conf
73 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
74 $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
76 win32: wx-console_private.res
79 wx-console_private.res: wx-console_private.rc
80 windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff
83 @$(RMF) $(CONSOBJS) wx-console $(WIN32RES)
89 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
91 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94 $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console
95 @srcconf=wx-console.conf; \
96 if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
97 destconf=$$srcconf.new; \
98 echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
100 destconf=$$srcconf; \
102 echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
103 ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
106 (cd $(DESTDIR)$(sbindir); $(RMF) wx-console)
107 (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new)
109 # Semi-automatic generation of dependencies:
110 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
111 # and it also includes system headers.
112 # `semi'-automatic since dependencies are generated at distribution time.
115 @$(MV) Makefile Makefile.bak
116 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
117 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
118 @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
119 @if test -f Makefile ; then \
120 $(RMF) Makefile.bak; \
122 $(MV) Makefile.bak Makefile; \
123 echo -e "Something went wrong\n\a"; \
126 # -----------------------------------------------------------------------
127 # DO NOT DELETE: nice dependency list follows