source: branches/samba-3.3.x/source/lib/replace/Makefile.in

Last change on this file was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 1.2 KB
Line 
1#!gmake
2#
3CC = @CC@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7includedir = @includedir@
8libdir = @libdir@
9VPATH = @libreplacedir@
10srcdir = @srcdir@
11builddir = @builddir@
12INSTALL = @INSTALL@
13LIBS = @LIBS@
14
15.PHONY: test all showflags install installcheck clean distclean realdistclean
16
17CFLAGS=-I. @CFLAGS@
18LDFLAGS=@LDFLAGS@
19
20OBJS = @LIBREPLACEOBJ@
21
22all: showflags libreplace.a testsuite
23
24showflags:
25 @echo 'libreplace will be compiled with flags:'
26 @echo ' CC = $(CC)'
27 @echo ' CFLAGS = $(CFLAGS)'
28 @echo ' LDFLAGS= $(LDFLAGS)'
29 @echo ' LIBS = $(LIBS)'
30
31install: all
32 mkdir -p $(libdir)
33 $(INSTALL) libreplace.a $(libdir)
34
35libreplace.a: $(OBJS)
36 ar -rcsv $@ $(OBJS)
37
38test: all
39 ./testsuite
40
41installcheck: install test
42
43TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o test/getifaddrs.o
44
45testsuite: libreplace.a $(TEST_OBJS)
46 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS)
47
48.c.o:
49 @echo Compiling $*.c
50 @mkdir -p `dirname $@`
51 @$(CC) $(CFLAGS) -c $< -o $@
52
53clean:
54 rm -f *.o test/*.o *.a testsuite
55 rm -f testfile.dat
56
57distclean: clean
58 rm -f *~ */*~
59 rm -f config.log config.status config.h config.cache
60 rm -f Makefile
61
62realdistclean: distclean
63 rm -f configure config.h.in
Note: See TracBrowser for help on using the repository browser.