Fix typo.
[Samba/gebeck_regimport.git] / source3 / lib / replace / Makefile.in
blobc989835a8d37b29cee7e63451be470f2a4dd6194
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 INSTALL = @INSTALL@
13 LIBS = @LIBS@
15 .PHONY: test all showflags install installcheck clean distclean realdistclean
17 CFLAGS=-I. @CFLAGS@
18 LDFLAGS=@LDFLAGS@
20 OBJS = @LIBREPLACEOBJ@
22 all: showflags libreplace.a testsuite
24 showflags:
25 @echo 'libreplace will be compiled with flags:'
26 @echo ' CC = $(CC)'
27 @echo ' CFLAGS = $(CFLAGS)'
28 @echo ' LDFLAGS= $(LDFLAGS)'
29 @echo ' LIBS = $(LIBS)'
31 install: all
32 mkdir -p $(libdir)
33 $(INSTALL) libreplace.a $(libdir)
35 libreplace.a: $(OBJS)
36 ar -rcsv $@ $(OBJS)
38 test: all
39 ./testsuite
41 installcheck: install test
43 TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o test/getifaddrs.o
45 testsuite: libreplace.a $(TEST_OBJS)
46 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS)
48 .c.o:
49 @echo Compiling $*.c
50 @mkdir -p `dirname $@`
51 @$(CC) $(CFLAGS) -c $< -o $@
53 clean:
54 rm -f *.o test/*.o *.a testsuite
55 rm -f testfile.dat
57 distclean: clean
58 rm -f *~ */*~
59 rm -f config.log config.status config.h config.cache
60 rm -f Makefile
62 realdistclean: distclean
63 rm -f configure config.h.in