2 # This file defines the things that should be common to all "programs"
3 # in the paradyn build tree. It depends on things like SRCS and
4 # TARGET being set correctly in the module-specific template and the
5 # architecture-specific Makefile.
7 # $Id: nmake.program.tmpl,v 1.2 1998/03/02 00:42:13 wylie Exp $
12 link -out:$(TARGET) -debug $(LDFLAGS) $(OBJS) $(LIBDIR) $(LIBS) $(SYSLIBS)
15 #!ifndef UNCOMMON_LINK
16 # The user may set APP_PURE_OPTIONS for application-specific purify options
17 #pure: $(OBJS) $(LIBS)
18 # purify $(APP_PURE_OPTIONS) -cache-dir=/tmp -$(MODCC) -collector=$(COLLECTOR) $(MODCC) -o $(TARGET) $(LDFLAGS) $(OBJS) $(LIBDIR) $(LIBS) $(SYSLIBS)
21 #!ifndef UNCOMMON_LINK
22 #quantify: $(OBJS) $(LIBS)
23 # quantify -cache-dir=/tmp -$(MODCC) -collector=$(COLLECTOR) $(MODCC) -o $(TARGET) $(LDFLAGS) $(OBJS) $(LIBDIR) $(LIBS) $(SYSLIBS)
26 #!ifndef UNCOMMON_LINK
28 # $(MODCC) -static -o $(TARGET) $(LDFLAGS) $(OBJS) $(LIBDIR) $(LIBS) $(SYSLIBS)
29 # # qpt's quick profiling may produce incorrect results in programs
30 # # executing interprocedural jumps; this includes setjmp/longjmp.
31 # # Hence we must use the -s option for paradyn:
36 DEST = $(PROGRAM_DEST)
39 VPATH = $(VPATH) ../src:$(TO_CORE)/../lib/$(PLATFORM):$(BACKUP_CORE)/../lib/$(PLATFORM)
46 $(RM) *.obj *.ilk *.pdb *.h *.C $(TARGET)
48 install: $(DEST)\$(TARGET)
50 $(DEST)\$(TARGET): $(TARGET)
52 $(CP) $(TARGET) $(DEST)
60 # Define DEPENDS dependencies such that the DEPENDS files depends on
61 # the .I files, not the .[Ch] files; otherwise, DEPENDS get rebuilt
62 # all the time. We do need to build the Igen-generated files before
63 # updating DEPENDS, however,
66 #!ifdef EXPLICIT_DEPENDS
69 #DEPENDS: $(SRCS) $(IGEN_ISRCS)
72 # $(MAKE) $(IGEN_GEN_SRCS)
74 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) $(IGEN_GEN_SRCS) > DEPENDS
75 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS) $(IGEN_SRCS) $(NOPED_SRCS)
77 #!ifdef EXPLICIT_DEPENDS
84 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) > DEPENDS
85 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS)
90 # A few pattern rules for simplicity. The default lex rule is
91 # redefined, just for the sake of cleanliness. More important are the
92 # igen rules; they "automatically" pick the correct type of igen to
93 # run. Actually, we can't do this completely "right" unless igen is
94 # changed to generate different output files for the various type of
99 $(CXX) $(CXXFLAGS) -c $<
102 $(CXX) $(CXXFLAGS) -c $<
113 $(CXX) $(CXXFLAGS) -c $<
117 # $(YACC) $(YFLAGS) $<
121 $(LEX) -t $(LFLAGS) $< > $@
123 %.xdr.C %.xdr.CLNT.C %.xdr.CLNT.h %.xdr.SRVR.C %.xdr.SRVR.h %.xdr.h: %.I
124 $(IGEN) -xdr $(ICFLAGS) $<
126 %.thread.C %.thread.CLNT.h %.thread.SRVR.h %.thread.h: %.I
127 $(IGEN) -thread $(ICFLAGS) $<
130 # include the dependencies.