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 # $Log: nmake.library.tmpl,v $
8 # Revision 1.1 1997/05/23 23:04:53 mjrg
15 VPATH = $(VPATH) ../src
20 lib -out:$*.lib $(OBJS)
26 ar crv $(TARGET2) $(OBJS2)
29 !endif # UNCOMMON_LINK
32 DEST = $(TO_CORE)\..\lib\$(PLATFORM)
39 del *.obj *.h *.C *.lib $(TARGET)
41 !ifndef UNCOMMON_INSTALL
42 install: $(DEST)/$(TARGET)
44 $(DEST)/$(TARGET): $(TARGET)
45 copy $(TARGET) $(DEST)
46 # $(RANLIB) $(DEST)/$(TARGET)
49 # definition for secondary library
52 install: $(DEST)/$(TARGET2)
54 $(DEST)/$(TARGET2): $(TARGET2)
56 $(RANLIB) $(DEST)/$(TARGET2)
58 !endif # ifndef UNCOMMON_INSTALL
61 # dependency generation definitions
70 # Define DEPENDS dependencies such that the DEPENDS files depends on
71 # the .I files, not the .[Ch] files; otherwise, DEPENDS get rebuilt
72 # all the time. We do need to build the Igen-generated files before
73 # updating DEPENDS, however,
76 #!ifdef EXPLICIT_DEPENDS
79 #DEPENDS: $(SRCS) $(IGEN_ISRCS)
82 # $(MAKE) $(IGEN_GEN_SRCS)
84 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) $(IGEN_GEN_SRCS) > DEPENDS
85 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS) $(IGEN_SRCS) $(NOPED_SRCS)
87 #!ifdef EXPLICIT_DEPENDS
94 # $(MODCC) -MM $(MODCFLAGS) $(SRCS) > DEPENDS
95 ## makedepend -fDEPENDS -- $(CFLAGS) $(SRCS)
100 # makedepend -fDEPENDS -- $(CFLAGS) $(SRCS)
107 # A few pattern rules for simplicity in handling igen-generated files.
110 %.xdr.C %.xdr.CLNT.C %.xdr.CLNT.h %.xdr.SRVR.C %.xdr.SRVR.h %.xdr.h: %.I
111 $(IGEN) -xdr $(ICFLAGS) $<
113 %.thread.C %.thread.CLNT.h %.thread.SRVR.h %.thread.h: %.I
114 $(IGEN) -thread $(ICFLAGS) $<
118 $(CXX) $(CXXFLAGS) -c $<
121 $(CXX) $(CXXFLAGS) -c $<
132 $(CXX) $(CXXFLAGS) -c $<
137 # include the dependencies.