2 # This file defines the things that should be common to all "libraries"
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.library.tmpl,v 1.2 1998/03/02 00:42:13 wylie Exp $
10 VPATH = $(VPATH) ../src
15 lib -out:$*.lib $(OBJS)
21 $(AR) crv $(TARGET2) $(OBJS2)
24 !endif # UNCOMMON_LINK
27 DEST = $(LIBRARY_DEST)
34 $(RM) *.obj *.h *.C *.lib $(TARGET)
36 !ifndef UNCOMMON_INSTALL
37 install: $(DEST)/$(TARGET)
39 $(DEST)/$(TARGET): $(TARGET)
41 $(CP) $(TARGET) $(DEST)
42 # $(RANLIB) $(DEST)/$(TARGET)
45 # definition for secondary library
48 install: $(DEST)/$(TARGET2)
50 $(DEST)/$(TARGET2): $(TARGET2)
51 $(CP) $(TARGET2) $(DEST)
52 $(RANLIB) $(DEST)/$(TARGET2)
54 !endif # ifndef UNCOMMON_INSTALL
57 # dependency generation definitions
66 # Define DEPENDS dependencies such that the DEPENDS files depends on
67 # the .I files, not the .[Ch] files; otherwise, DEPENDS get rebuilt
68 # all the time. We do need to build the Igen-generated files before
69 # updating DEPENDS, however,
72 #!ifdef EXPLICIT_DEPENDS
75 #DEPENDS: $(SRCS) $(IGEN_ISRCS)
78 # $(MAKE) $(IGEN_GEN_SRCS)
80 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) $(IGEN_GEN_SRCS) > DEPENDS
81 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS) $(IGEN_SRCS) $(NOPED_SRCS)
83 #!ifdef EXPLICIT_DEPENDS
90 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) > DEPENDS
91 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS)
96 # makedepend -fDEPENDS -- $(CFLAGS) $(SRCS)
103 # A few pattern rules for simplicity in handling igen-generated files.
106 %.xdr.C %.xdr.CLNT.C %.xdr.CLNT.h %.xdr.SRVR.C %.xdr.SRVR.h %.xdr.h: %.I
107 $(IGEN) -xdr $(ICFLAGS) $<
109 %.thread.C %.thread.CLNT.h %.thread.SRVR.h %.thread.h: %.I
110 $(IGEN) -thread $(ICFLAGS) $<
114 $(CXX) $(CXXFLAGS) -c $<
117 $(CXX) $(CXXFLAGS) -c $<
128 $(CXX) $(CXXFLAGS) -c $<
133 # include the dependencies.