]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/console/Makefile
Added fix for bug #1275 where acl or xattr data is saved for virtual filenames genera...
[bacula/bacula] / bacula / src / win32 / console / Makefile
index 226c8ac83874a7498ab20addca01b24ac6e9ac9a..4dc0e2e95a97fd72af2d9947f9d1b39d97a6deeb 100644 (file)
@@ -1,24 +1,54 @@
 #
-# Makefile to build the native Win32 console
-# VC++ and tools must be on your path
+# Makefile for win32 bacula executables
+# Using MinGW cross-compiler on GNU/Linux
 #
-#     Kern Sibbald, April 2004
+#  Written by Robert Nelson, June 2006
 #
 
-NMAKE=nmake
+include ../Makefile.inc
 
-first_rule: all
+INCLUDES = \
+       $(INCLUDE_BACULA) \
+       $(INCLUDE_PTHREADS) \
+       $(INCLUDE_OPENSSL)
 
-dummy:
+DEFINES = \
+       -DUSING_DLL \
+       $(HAVES)
 
-all:  console
+vpath %.c $(MAINDIR)/src/console
+vpath %.cpp $(MAINDIR)/src/console
 
+##########################################################################
 
-console:
-       (env MAKEFLAGS= ${NMAKE} CFG="console - Win32 Release" /f console.mak)
+CONSOLE_OBJS = \
+       $(OBJDIR)/authenticate.o \
+       $(OBJDIR)/console.o \
+       $(OBJDIR)/console_conf.o
 
+ALL_OBJS = $(CONSOLE_OBJS)
+
+CONSOLE_LIBS = $(LIBS_NETWORK) 
+
+######################################################################
+
+# Targets
+
+.PHONY: all clean
+
+all: $(BINDIR)/bconsole.exe
 
 clean:
-       rm -rf Debug/*.obj Release/*.obj
+       @echo "Cleaning `pwd`"
+       $(call clean_obj,$(ALL_OBJS))
+       $(call clean_exe,$(BINDIR)/bconsole.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
+
+#
+# Rules
+#
+
+$(BINDIR)/bconsole.exe: $(CONSOLE_OBJS) $(LIBS_BACULA)
+       $(call link_conapp,$(CONSOLE_LIBS))
 
-distclean: clean
+include ../Makefile.rules