5 exec_prefix = @exec_prefix@
7 includedir = @includedir@
9 VPATH = @libreplacedir@
14 .PHONY: test all showflags install installcheck clean distclean realdistclean
19 OBJS = @LIBREPLACEOBJ@
21 all: showflags libreplace.a testsuite
24 @echo 'libreplace will be compiled with flags:'
26 @echo ' CFLAGS = $(CFLAGS)'
27 @echo ' LDFLAGS= $(LDFLAGS)'
31 $(INSTALL) libreplace.a $(libdir)
39 installcheck: install test
41 TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o
43 testsuite: libreplace.a $(TEST_OBJS)
44 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS)
48 @mkdir -p `dirname $@`
49 @$(CC) $(CFLAGS) -c $< -o $@
52 rm -f *.o test/*.o *.a testsuite
57 rm -f config.log config.status config.h config.cache
60 realdistclean: distclean
61 rm -f configure config.h.in