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.
6 # $Id: make.module.tmpl,v 1.26 2008/02/20 08:31:02 jaw Exp $
10 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
14 #TEST_TARGET = testDyner
16 SRCS += ../src/$(TARGET).C #lex.$(TARGET).C $(TARGET).tab.C
17 #TEST_SRC = ../tests/$(TEST_TARGET).C
19 IFLAGS += -I$(TO_CORE)/dyninstAPI/h
20 IFLAGS += -I$(TO_CORE)/dyninstAPI/src
21 IFLAGS += -I$(TO_CORE)/symtabAPI/h
22 IFLAGS += -I$(TO_CORE)/dynutil/h
23 IFLAGS += -I$(TO_CORE)/dynC_API/h
25 IFLAGS += -I$(TO_CORE)/instructionAPI/h
27 CXXFLAGS += $(BASICWARNINGS)
28 CFLAGS += $(BASICWARNINGS)
30 # This may cause problems on Alpha
31 # GCC has a new mangled name squisher (-fsquangle) which can be
32 # set to "on" by default. This causes linker problems, so we
36 CFLAGS += -fno-squangle
37 CXXFLAGS += -fno-squangle
40 LIBS += -lcommon -lsymtabAPI -lparseAPI -linstructionAPI -ldyninstAPI -ldynC_API
42 SYSLIBS += -liberty $(DEMANGLER_EXEC_LINK)
43 SYSLIBS += -L$(TCLTK_LIB_DIR) $(TCL_LIB)
45 all: $(TARGET) $(TEST_TARGET)
47 MUTATEE_CFLAGS += $(MODCFLAGS) -g
49 $(TEST_TARGET): $(TEST_SRC)
50 $(CXX) $(MUTATEE_CFLAGS) -o $(TEST_TARGET) $(TEST_SRC)