source: branches/samba-3.0/source/lib/replace/Makefile.in

Last change on this file was 30, checked in by Paul Smedley, 18 years ago

Code updated to Samba 3.0.25rc2 level

File size: 1.1 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@
13
14.PHONY: test
15
16CFLAGS=-I. -I@libreplacedir@ @CFLAGS@
17
18OBJS = @LIBREPLACEOBJ@
19
20all: showflags libreplace.a testsuite
21
22showflags:
23 @echo 'libreplace will be compiled with flags:'
24 @echo ' CC = $(CC)'
25 @echo ' CFLAGS = $(CFLAGS)'
26 @echo ' LIBS = $(LIBS)'
27
28install: all
29 mkdir -p $(libdir)
30 $(INSTALL) libreplace.a $(libdir)
31
32libreplace.a: $(OBJS)
33 ar -rcsv $@ $(OBJS)
34
35test: all
36 ./testsuite
37
38installcheck: install test
39
40TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o
41
42testsuite: libreplace.a $(TEST_OBJS)
43 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace
44
45.c.o:
46 @echo Compiling $*.c
47 @mkdir -p `dirname $@`
48 @$(CC) $(CFLAGS) -c $< -o $@
49
50clean:
51 rm -f *.o test/*.o *.a testsuite
52 rm -f testfile.dat
53
54distclean: clean
55 rm -f *~ */*~
56 rm -f config.log config.status config.h config.cache
57 rm -f Makefile
58
59realdistclean: distclean
60 rm -f configure config.h.in
Note: See TracBrowser for help on using the repository browser.