]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/console/Makefile
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / console / Makefile
1 #
2 # Makefile for win32 bacula executables
3 # Using MinGW cross-compiler on GNU/Linux
4 #
5 # Author: Robert Nelson
6 # License: BSD 2-Clause; see file LICENSE-FOSS
7 #
8 #  Written by Robert Nelson, June 2006
9 #
10
11 include ../Makefile.inc
12
13 INCLUDES = \
14         $(INCLUDE_BACULA) \
15         $(INCLUDE_PTHREADS) \
16         $(INCLUDE_OPENSSL)
17
18 DEFINES = \
19         -DUSING_DLL \
20         $(HAVES)
21
22 vpath %.c $(MAINDIR)/src/console
23 vpath %.cpp $(MAINDIR)/src/console
24
25 ##########################################################################
26
27 CONSOLE_OBJS = \
28         $(OBJDIR)/authenticate.o \
29         $(OBJDIR)/console.o \
30         $(OBJDIR)/console_conf.o
31
32 ALL_OBJS = $(CONSOLE_OBJS)
33
34 CONSOLE_LIBS = $(LIBS_NETWORK) 
35
36 ######################################################################
37
38 # Targets
39
40 .PHONY: all clean distclean
41
42 all: $(BINDIR)/bconsole.exe
43
44 distclean: clean
45
46 clean:
47         @echo "Cleaning `pwd`"
48         $(call clean_obj,$(ALL_OBJS))
49         $(call clean_exe,$(BINDIR)/bconsole.exe)
50         $(ECHO_CMD)rm -rf $(OBJDIRS)
51
52 #
53 # Rules
54 #
55
56 $(BINDIR)/bconsole.exe: $(CONSOLE_OBJS) $(LIBS_BACULA)
57         $(call link_conapp,$(CONSOLE_LIBS))
58
59 include ../Makefile.rules