]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/Makefile.in
Added wxbutils.cpp, win32 test corrected.
[bacula/bacula] / bacula / src / wx-console / Makefile.in
1 #
2 #  Version $Id$
3 #
4 @MCOMMON@
5
6 srcdir =        .
7 VPATH =         .
8 .PATH:          .
9
10 # one up
11 basedir = ..
12 # top dir
13 topdir = ../..
14 # this dir relative to top dir
15 thisdir = src/wx-console
16
17 DEBUG=@DEBUG@
18
19 first_rule: all
20 dummy:
21
22 #
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
27
28 win32 = wx-console_private.res
29
30 WIN32RES = $(@WIN32@)
31
32 # these are the objects that are changed by the .configure process
33 EXTRAOBJS = @OBJLIST@
34
35 # wx-config generated by configure
36 CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
37 CONS_LDFLAGS=@WXCONS_LDFLAGS@
38
39 .SUFFIXES:     .cpp .c .o
40 .PHONY:
41 .DONTCARE:
42
43 # inference rules
44 .c.o:
45         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
46            -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
47
48 .cpp.o:
49         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
50            -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
51
52
53 #-------------------------------------------------------------------------
54 all: Makefile wx-console
55         @echo "==== Make of wx-console is good ===="
56         @echo " "
57
58
59 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
60         $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
61
62 win32: wx-console_private.res
63         
64
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 
67
68 clean:
69         @$(RMF) $(OBJ) wx-console $(WIN32RES)
70
71 distclean: clean
72         $(RMF) Makefile
73         $(RMF) -r CVS
74
75 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
76         cd $(topdir) \
77           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
78
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.
83
84 depend:
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; \
91         else \
92            $(MV) Makefile.bak Makefile; \
93            echo -e "Something went wrong\n\a"; \
94         fi
95
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows