]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.mingw
5cc0fdd2c086813ba6847acdbb3288615911cd04
[bacula/bacula] / bacula / src / findlib / Makefile.mingw
1 #
2 #  Find files library Makefile
3 #
4
5 # autoconf/Make.common.in        -*- Makefile -*-
6 # release date (man), LSM date, version number/name, current maintainer
7 DATE="15 Apr 2004"
8 LSMDATE=15Apr04
9 VERSION=1.35.0
10 VERNAME=bacula-$(VERSION)#
11 MAINT=Kern Sibbald#
12 MAINTEMAIL=<kern@sibbald.com>#
13 WEBMAINT=#
14 WEBMAINTEMAIL=#
15 WEBPAGE=#
16 FTPSITENAME=#
17 FTPSITEDIR=#
18 #-------------------------------------------------------------------------
19
20 SHELL = /bin/sh
21
22 # Installation target directories & other installation stuff
23 prefix = 
24 exec_prefix = 
25 binprefix =
26 manprefix =
27 sbindir = /sbin
28 sysconfdir = /etc/bacula
29 scriptdir = /etc/bacula
30 mandir = ${prefix}/man/man1
31 manext = 1
32
33 # Tools & program stuff
34 CC = gcc
35 CPP = gcc -E
36 CXX = g++
37 MV = /usr/bin/mv
38 RM = /usr/bin/rm
39 RMF = /usr/bin/rm -f
40 CP = /usr/bin/cp
41 SED = /usr/bin/sed
42 AWK = /usr/bin/awk
43 ECHO = /usr/bin/echo
44 CMP = /usr/bin/cmp
45 TBL = /usr/bin/tbl
46 AR = ar
47 RANLIB = ranlib
48 INSTALL = /usr/bin/install -c
49 # add the -s to the following in PRODUCTION mode
50 INSTALL_PROGRAM = /usr/bin/install -c -m 754
51 INSTALL_DATA = /usr/bin/install -c -m 644
52 INSTALL_SCRIPT = /usr/bin/install -c -m 754
53 INSTALL_CONFIG = /usr/bin/install -c -m 640
54
55 # Flags & libs
56 CFLAGS = -g -O2 
57 CPPFLAGS = 
58 LDFLAGS = -O
59 TTOOL_LDFLAGS = 
60 DEFS = -DHAVE_WIN32 -DHAVE_MINGW
61 LIBS = -lpthread
62 DINCLUDE = 
63 DLIB = 
64 DB_LIBS = 
65
66 # Windows (cygwin) flags 
67 WCFLAGS = -mwindows
68 WLDFLAGS = -mwindows
69
70 # X Include directory
71 #XINC =  @XPM_CFLAGS@
72
73 # extra libraries needed by X on some systems, X library location
74 #XLIB =  @XPM_LIBS@ -lX11 
75
76 # End of common section of the Makefile
77 #-------------------------------------------------------------------------
78
79 srcdir =        .
80 VPATH =         .
81 .PATH:          .
82
83 # one up
84 basedir = ..
85 # top dir
86 topdir = ../..
87 # this dir relative to top dir
88 thisdir = src/findlib
89
90 DEBUG=
91
92 first_rule: all
93 dummy:
94
95 #
96 LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
97           bfile.c enable_priv.c makepath.c save-cwd.c winapi.c
98 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
99           bfile.o enable_priv.o makepath.o save-cwd.o winapi.o
100
101 .SUFFIXES:      .c .o
102 .PHONY:
103 .DONTCARE:
104
105 # inference rules
106 .c.o:
107         $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../win32/compat $(DINCLUDE) $(CFLAGS) $<
108 #-------------------------------------------------------------------------
109 all: libfind.a
110         @echo "==== Make of findlib is good ===="
111         @echo " "
112
113 libfind.a: $(LIBOBJS)
114         $(RMF) $@
115         $(AR) cr $@ $(LIBOBJS)
116         $(RANLIB) $@
117
118 install:
119
120 uninstall:
121
122
123 clean:
124         $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
125
126 realclean: clean
127         $(RMF) tags
128
129 distclean: realclean
130         if test $(srcdir) = .; then $(MAKE) realclean; fi
131         (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
132
133 devclean: realclean
134         if test $(srcdir) = .; then $(MAKE) realclean; fi
135         (cd $(srcdir); $(RMF) Makefile)
136
137 install:
138
139
140 uninstall:
141
142
143
144 # Semi-automatic generation of dependencies:
145 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
146 # and it also includes system headers.
147 # `semi'-automatic since dependencies are generated at distribution time.
148
149 depend:
150         @$(MV) Makefile Makefile.bak
151         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
152         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
153         @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
154         @if test -f Makefile ; then \
155             $(RMF) Makefile.bak; \
156         else \
157            $(MV) Makefile.bak Makefile; \
158            echo -e "Something went wrong\n\a"; \
159         fi
160
161 # -----------------------------------------------------------------------
162 # DO NOT DELETE: nice dependency list follows