# # Makefile for the dbmalloc tests directory # # @(#$Id: Makefile,v 1.1 1996/09/17 00:14:53 davidl Exp $ # ARCHSUFFIX = OSFix86 DBMALLOCPATH = LIB_LOC = /usr/lib LIB_NAME = libdbmalloc.a TESTS = testmalloc testmem testerr testerr++ teststack CC = pgcc C++ = pgCC OPTS = DEFINES = INCLUDES = CFLAGS = $(OPTS) $(DEFINES) $(INCLUDES) all: tests lint: echo "no lint for tests" tests: $(TESTS) testmalloc.o: testmalloc.c testmalloc: testmalloc.o $(LIB_LOC)/$(LIB_NAME) $(CC) $(CFLAGS) -o $@ testmalloc.o $(LIB_LOC)/$(LIB_NAME) testmem.o: testmem.c testmem: testmem.o $(LIB_LOC)/$(LIB_NAME) $(CC) $(CFLAGS) -o $@ testmem.o $(LIB_LOC)/$(LIB_NAME) teststack.o: teststack.c teststack: teststack.o $(LIB_LOC)/$(LIB_NAME) $(CC) $(CFLAGS) -o $@ teststack.o $(LIB_LOC)/$(LIB_NAME) testerr.o: testerr.c testerr: testerr.o $(LIB_LOC)/$(LIB_NAME) $(CC) $(CFLAGS) -o $@ testerr.o $(LIB_LOC)/$(LIB_NAME) testerr++.o: testerr++.C $(C++) $(CFLAGS) -o $@ -c $< testerr++: testerr++.o $(C++) $(CFLAGS) -o $@ testerr++.o $(LIB_LOC)/$(LIB_NAME) # # runtests - target for building and running the tests. Note that we # run testmalloc with fill_area disabled. This is because testmalloc is # a malloc exerciser and we just want to see if we broke malloc, not verify # that the test doesn't overwrite memory (since it doesn't). # runtests: $(TESTS) @echo "Running all of the test programs. This may take a while so" @echo "please be patient." Runtests clean: rm -f $(TESTS) *.o Runtests.out