5 exec_prefix = @exec_prefix@
7 includedir = @includedir@
9 VPATH = @libreplacedir@
16 CFLAGS=-I. -I@libreplacedir@ @CFLAGS@
18 OBJS = @LIBREPLACEOBJ@
20 all: showflags libreplace.a testsuite
23 @echo 'libreplace will be compiled with flags:'
25 @echo ' CFLAGS = $(CFLAGS)'
26 @echo ' LIBS = $(LIBS)'
30 $(INSTALL) libreplace.a $(libdir)
38 installcheck: install test
40 TEST_OBJS = test/testsuite.o test/os2_delete.o
42 testsuite: libreplace.a $(TEST_OBJS)
43 $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace
47 @mkdir -p `dirname $@`
48 @$(CC) $(CFLAGS) -c $< -o $@
51 rm -f *.o test/*.o *.a testsuite
56 rm -f config.log config.status config.h config.cache
59 realdistclean: distclean
60 rm -f configure config.h.in