The core of the fix to allow opens to go async inside a compound request.
[Samba.git] / lib / replace / Makefile.in
blob65f8125efdeb07c3f8fed6d918457cbf9f42fb8d
1 #!gmake
3 CC = @CC@
4 prefix = @prefix@
5 exec_prefix = @exec_prefix@
6 bindir = @bindir@
7 includedir = @includedir@
8 libdir = @libdir@
9 VPATH = @libreplacedir@
10 srcdir = @srcdir@
11 builddir = @builddir@
12 sharedbuilddir = @sharedbuilddir@
13 INSTALLCMD = @INSTALL@
14 LIBS = @LIBS@
16 .PHONY: test all showflags install installcheck clean distclean realdistclean
18 CFLAGS=-I. @CFLAGS@
19 LDFLAGS=@LDFLAGS@
21 OBJS = @LIBREPLACEOBJ@
23 all: showflags libreplace.a testsuite
25 showflags:
26 @echo 'libreplace will be compiled with flags:'
27 @echo ' CC = $(CC)'
28 @echo ' CFLAGS = $(CFLAGS)'
29 @echo ' LDFLAGS= $(LDFLAGS)'
30 @echo ' LIBS = $(LIBS)'
32 install: all
33 ${INSTALLCMD} -d $(libdir)
34 ${INSTALLCMD} -m 644 libreplace.a $(libdir)
36 shared-build: all
37 ${INSTALLCMD} -d $(sharedbuilddir)/include
38 ${INSTALLCMD} -m 644 replace.h $(sharedbuilddir)/include
39 ${INSTALLCMD} -d $(sharedbuilddir)/lib
40 ${INSTALLCMD} -m 644 libreplace.a $(sharedbuilddir)/lib
42 libreplace.a: $(OBJS)
43 ar -rcsv $@ $(OBJS)
45 test: all
46 ./testsuite
48 installcheck: install test
50 TEST_OBJS = test/main.o test/testsuite.o test/os2_delete.o test/strptime.o test/getifaddrs.o
52 testsuite: libreplace.a $(TEST_OBJS)
53 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS)
55 .c.o:
56 @echo Compiling $*.c
57 @mkdir -p `dirname $@`
58 @$(CC) $(CFLAGS) -c $< -o $@
60 clean:
61 rm -f *.o test/*.o *.a testsuite
62 rm -f testfile.dat
64 distclean: clean
65 rm -f *~ */*~
66 rm -f config.log config.status config.h config.cache
67 rm -f Makefile
69 realdistclean: distclean
70 rm -f configure config.h.in