# # Common makefile template for dyninst Tests. This file is not intended to # be a useful Makefile in isolation; instead, it should be included # from within an architecture-specific Makefile. # # $Id: nmake.module.tmpl,v 1.15 2004/04/28 20:20:11 rchen Exp $ # SUITE_NAME = Dyninst RELEASE_NUM = 4.1 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here! TARGET = dyner.exe TEST_TARGET = testDyner.exe SRCS = ../src/$(TARGET:.exe=.C) lex.$(TARGET:.exe=.c) $(TARGET:.exe=.tab).c TEST_SRC = ../tests/$(TEST_TARGET:.exe=.C) OBJS = $(TARGET:.exe=.obj) lex.$(TARGET:.exe=.obj) $(TARGET:.exe=.tab).obj IFLAGS = $(IFLAGS) -I$(TO_CORE)/dyninstAPI/h -I../src LIBS = $(TO_CORE)/$(LIBRARY_DEST)/libdyninstAPI.lib SYSLIBS = -LIBPATH:$(TCLTK_DIR)\lib $(TCL_LIB) all: $(TARGET) $(TEST_TARGET) $(TEST_TARGET:.exe=.obj): $(TEST_SRC) $(CC) $(CXXFLAGS) -c -o $(TEST_TARGET:.exe=.obj) $(TEST_SRC) $(TEST_TARGET): $(TEST_TARGET:.exe=.obj) $(LINK) -out:$(TEST_TARGET) $(LDFLAGS) -debug -pdb:none \ $(TEST_TARGET:.exe=.obj) LFLAGS = $(LFLAGS) -P$(TARGET:.exe=) YFLAGS = $(YFLAGS) -p $(TARGET:.exe=) lex.$(TARGET:.exe=.c): ../src/cmdline.l $(TARGET:.exe=.tab).h $(LEX) $(LFLAGS) ../src/cmdline.l $(PERL) $(TO_CORE)\..\scripts\vcStripUnistd.pl < $@ > $@.tmp $(MV) $@.tmp $@ $(TARGET:.exe=.tab).c $(TARGET:.exe=.tab).h: ../src/cmdline.y $(YACC) $(YFLAGS) ../src/cmdline.y $(PERL) $(TO_CORE)\..\scripts\vcStripStd.pl < y.tab.c > $(TARGET:.exe=.tab).c $(MV) y.tab.h $(TARGET:.exe=.tab).h -$(RM) y.tab.c