Fixing some problems and bringing the NT version up to date - naim
[dyninst.git] / dyninstAPI / tests / make.module.tmpl
1
2 # Common makefile template for dyninst Tests.  This file is not intended to
3 # be a useful Makefile in isolation; instead, it should be included
4 # from within an architecture-specific Makefile.
5 #
6 #
7
8 VPATH        +=
9
10 ifdef TARGET
11 SRCS         += ../src/$(TARGET).C ../src/test_util.C
12 else
13 TARGET        = test1 test2 test1.mutatee test2.mutatee
14 SRCS         += ../src/test1.C ../src/test2.C ../src/test_util.C \
15                 ../src/test1.mutatee.c ../src/test2.mutatee.c
16 endif
17
18 CXXFLAGS     += -I../../h
19 CFLAGS       += -I../../h
20
21 LIBS         += -ldyninstAPI -lpdutil
22 SYSLIBS      += -liberty
23
24 all:
25         $(MAKE) aTest TARGET=test1 TARGET2=test1.mutatee
26         $(MAKE) aTest TARGET=test2 TARGET2=test2.mutatee
27
28 pc:
29         $(MAKE) purecov TARGET=test1 TARGET2=test1.mutatee
30         $(MAKE) purecov TARGET=test2 TARGET2=test2.mutatee
31
32 aTest:  $(TARGET) $(TARGET2)