5 exec_prefix = @
exec_prefix@
7 includedir = @
includedir@
9 VPATH
= @libreplacedir@
15 .PHONY
: test all showflags
install installcheck clean distclean realdistclean
20 OBJS
= @LIBREPLACEOBJ@
22 all: showflags libreplace.a testsuite
25 @echo
'libreplace will be compiled with flags:'
27 @echo
' CFLAGS = $(CFLAGS)'
28 @echo
' LDFLAGS= $(LDFLAGS)'
29 @echo
' LIBS = $(LIBS)'
33 $(INSTALL
) libreplace.a
$(libdir)
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
)
50 @mkdir
-p
`dirname $@`
51 @
$(CC
) $(CFLAGS
) -c
$< -o
$@
54 rm -f
*.o
test/*.o
*.a testsuite
59 rm -f config.log config.status config.h config.cache
62 realdistclean
: distclean
63 rm -f configure config.h.in