2 # Makefile for win32 bacula executables
3 # Using MinGW cross-compiler on GNU/Linux
5 # Author: Robert Nelson
6 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Written by Robert Nelson, June 2006
12 # Change the following depending on where this directory is located
13 # in the Bacula tree. It should point to the src/win32 directory.
17 include $(BUILDDIR)/Makefile.inc
34 # -DHAVE_TRAY_MONITOR \
37 vpath %.c $(MAINDIR)/src/filed $(BUILDDIR)/libwin32
38 vpath %.cpp $(MAINDIR)/src/filed $(BUILDDIR)/libwin32
40 ##########################################################################
43 $(OBJDIR)/accurate.o \
44 $(OBJDIR)/authenticate.o \
48 $(OBJDIR)/estimate.o \
49 $(OBJDIR)/fd_plugins.o \
50 $(OBJDIR)/fd_snapshot.o \
52 $(OBJDIR)/filed_conf.o \
53 $(OBJDIR)/heartbeat.o \
59 $(OBJDIR)/verify_vol.o \
62 $(OBJDIR)/vss_W2K3.o \
63 $(OBJDIR)/vss_Vista.o \
67 $(OBJDIR)/bacl_linux.o \
68 $(OBJDIR)/bacl_solaris.o \
69 $(OBJDIR)/bxattr_freebsd.o \
70 $(OBJDIR)/bxattr_osx.o \
71 $(OBJDIR)/bacl_freebsd.o \
72 $(OBJDIR)/bacl_osx.o \
74 $(OBJDIR)/bxattr_linux.o \
75 $(OBJDIR)/bxattr_solaris.o \
78 # $(OBJDIR)/trayMonitor.o \
79 # $(OBJDIR)/aboutDialog.o \
80 # $(OBJDIR)/statusDialog.o \
83 ALL_OBJS = $(FILED_OBJS)
95 ######################################################################
99 .PHONY: all clean distclean
101 all: $(BINDIR)/bacula-fd.exe
106 @echo "Cleaning `pwd`"
107 $(call clean_obj,$(ALL_OBJS))
108 $(call clean_exe,$(BINDIR)/bacula-fd.exe)
109 $(ECHO_CMD)rm -rf $(OBJDIRS)
115 $(BINDIR)/bacula-fd.exe: $(FILED_OBJS) $(LIBS_BACULA)
116 $(call link_winapp,$(FILED_LIBS))
118 $(OBJDIR)/winres.res: $(BUILDDIR)/libwin32/winres.rc
121 $(ECHO_CMD)$(WINDRES) $(INCLUDE_ICONS) -DMINGW64 -O coff $< -o $@
123 include $(BUILDDIR)/Makefile.rules