]> git.sur5r.net Git - bacula/bacula/commitdiff
Allows makefile to be generated by configure.
authorNicolas Boichat <nicolas@boichat.ch>
Thu, 15 Apr 2004 11:57:42 +0000 (11:57 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Thu, 15 Apr 2004 11:57:42 +0000 (11:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1202 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/Makefile.in [new file with mode: 0644]

diff --git a/bacula/src/wx-console/Makefile.in b/bacula/src/wx-console/Makefile.in
new file mode 100644 (file)
index 0000000..4120761
--- /dev/null
@@ -0,0 +1,66 @@
+#
+#  Version $Id$
+#
+@MCOMMON@
+
+srcdir =       .
+VPATH =        .
+.PATH:         .
+
+# one up
+basedir = ..
+# top dir
+topdir = ../..
+# this dir relative to top dir
+thisdir = src/wx-console
+
+DEBUG=@DEBUG@
+
+first_rule: all
+dummy:
+
+#
+CONSSRCS = main.c console_thread.c authenticate.c console_conf.c wxbrestorepanel.c \
+             wxbmainframe.c wxbtableparser.c
+CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
+             wxbmainframe.o wxbtableparser.o
+
+@if test "@DISTNAME@" = "cygwin" then \
+CONSSRCS = $(CONSSRCS) wx-console_private.rc; \
+CONSOBJS = $(CONSOBJS) wx-console_private.res; \
+fi
+
+# these are the objects that are changed by the .configure process
+EXTRAOBJS = @OBJLIST@
+
+CONS_INC=@CONS_INC@
+CONS_LIBS=@CONS_LIBS@
+
+# TODO: wx-config should be generated by configure
+CONS_CPPFLAGS=@CONS_CPPFLAGS@ `wx-config --cppflags`
+CONS_LDFLAGS=@CONS_LDFLAGS@ `wx-config --libs`
+
+.SUFFIXES:     .c .o
+.PHONY:
+.DONTCARE:
+
+# inference rules
+.c.o:
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
+          -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
+
+#-------------------------------------------------------------------------
+all: Makefile wx-console
+       @echo "==== Make of wx-console is good ===="
+       @echo " "
+
+clean:
+       @$(RMF) $(OBJ) wx-console
+
+distclean: clean
+
+wx-console: $(CONSOBJ) ../lib/libbac.a
+       $(CXX) $(LINKOBJ) -o wx-console $(LIBS) $(WLDFLAGS) $(CONS_LDFLAGS) -lbac
+       
+wx-console_private.res: wx-console_private.rc 
+       windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff 
\ No newline at end of file