# Written by Robert Nelson, June 2006
#
-include ../Makefile.inc
+#
+# Change the following depending on where this directory is located
+# in the Bacula tree. It should point to the src/win32 directory.
+BUILDDIR = ..
+
+
+include $(BUILDDIR)/Makefile.inc
INCLUDES = \
-I. \
$(BINDIR)/bacula-fd.exe: $(FILED_OBJS) $(LIBS_BACULA)
$(call link_winapp,$(FILED_LIBS))
-$(OBJDIR)/winres.res: ../libwin32/winres.rc
+$(OBJDIR)/winres.res: $(BUILDDIR)/libwin32/winres.rc
@echo "Compiling $@"
$(call checkdir,$@)
$(ECHO_CMD)$(WINDRES) $(INCLUDE_ICONS) -O coff $< -o $@
-include ../Makefile.rules
+include $(BUILDDIR)/Makefile.rules
$(BINDIR)/bpipe-fd.dll: DLL_DEFINE=BUILDING_DLL
-$(BINDIR)/bpipe-fd.dll: $(BPIPE_OBJS) bpipe-fd.def
+$(BINDIR)/bpipe-fd.dll: $(BPIPE_OBJS) bpipe-fd.def $(LIBS_BACULA)
@echo "Linking $@"
$(call checkdir,$@)
- $(ECHO_CMD)$(CXX) $(LDFLAGS) -mdll -mwindows -Wl,--out-implib,$(OBJDIR)/bpipe-fd.a $^ $(LIBS_DLL) -o $@
-
+ $(ECHO_CMD)$(CXX) $(CFLAGS) $(LDFLAGS) -mdll -mwindows -Wl,--out-implib,$(OBJDIR)/bpipe-fd.a $^ $(LIBS_DLL) -o $@
include $(BUILDDIR)/Makefile.rules
sp->statp.st_ctime = now;
sp->statp.st_mtime = now;
sp->statp.st_atime = now;
- sp->statp.st_size = -1;
+ sp->statp.st_size = 0;
sp->statp.st_blksize = 4096;
sp->statp.st_blocks = 1;
p_ctx->backup = true;
return bRC_Error;
}
}
-// bmicrosleep(1,0); /* let pipe connect */
+ bmicrosleep(1,0); /* let pipe connect */
break;
case IO_READ: