# # Common makefile template for rtinst library. This file is not # intended to be a useful Makefile in isolation; instead, it should be # included from within an architecture-specific Makefile. # # $Log: make.module.tmpl,v $ # Revision 1.10 1997/02/26 23:52:05 mjrg # First part of WindowsNT port: divided RTposix.c into two files, # RTinst.c which has all platform independent code and RTposix.c with # unix specific code # # Revision 1.9 1996/10/31 08:03:00 tamches # the shm-sampling commit # # Revision 1.8 1996/07/30 19:02:19 mjrg # Changed libdyninstRT.a to libdyninstRT.o # Link libdyninstRT.o with libgcc # # Revision 1.7 1995/08/30 19:35:56 mjrg # Fixed install for cm5 libraries. # # Revision 1.6 1995/08/29 23:21:44 hollings # Fixed missing UNCOMMON_LINK flag. # # Revision 1.5 1995/08/24 15:12:04 hollings # AIX/SP-2 port (including option for split instruction/data heaps) # Tracing of rexec (correctly spawns a paradynd if needed) # Added rtinst function to read getrusage stats (can now be used in metrics) # Critical Path # Improved Error reporting in MDL sematic checks # Fixed MDL Function call statement # Fixed bugs in TK usage (strings passed where UID expected) # # Revision 1.4 1995/05/30 05:16:03 krisna # moved declaration of LIBS to SunOs Makefile. we do not use libkvm.a # on Solaris, and it is non-existent on HPUX. # # Revision 1.3 1995/02/21 16:27:55 jcargill # Changes to new build system so rtinst builds for all archs # # Revision 1.2 1995/02/16 09:11:29 markc # Added support for RTfirst.o and RTend.o which mark the beginning and end # of DYNINST code. # # Revision 1.1 1995/01/30 18:30:31 jcargill # Major build system reorganization # # ifndef TARGET TARGET = libdyninstRT.o ALT_TARGET = DYNINSTstartCode.o DYNINSTendCode.o RTpvmPiggy.o RTcriticalPath.o endif MODCC = $(CC) MODCFLAGS = $(CFLAGS) SRCS += ../src/RTinst.c ../src/RTend.c SRCS2 += ../src/RTend.c DYNSRCS = ../src/DYNINSTstartCode.c \ ../src/DYNINSTendCode.c ifdef USES_SHM_SAMPLING CFLAGS += -DSHM_SAMPLING endif all: $(TARGET) $(TARGET2) $(ALT_TARGET) # # override standard link rule; libdyninst is not really a library or a program. # UNCOMMON_LINK= true OBJS = $(patsubst %.C, %.o, $(filter %.C,$(notdir $(SRCS)))) \ $(patsubst %.c, %.o, $(filter %.c,$(notdir $(SRCS)))) \ $(patsubst %.s, %.o, $(filter %.s,$(notdir $(SRCS)))) \ $(patsubst %.S, %.o, $(filter %.S,$(notdir $(SRCS)))) \ $(IGEN_GEN_SRCS:%.C=%.o) $(TARGET): $(OBJS) $(LIBS) $(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) -lgcc # # override standard install rule; provide a default DEST if not already set # ifndef DEST DEST = $(TO_CORE)/../lib/$(PLATFORM) endif UNCOMMON_INSTALL= true ifndef CM5_INSTALL install: $(DEST)/$(TARGET) \ $(DEST)/DYNINSTstartCode.o \ $(DEST)/DYNINSTendCode.o \ $(DEST)/RTpvmPiggy.o else install: $(DEST)/$(TARGET) $(DEST)/$(TARGET2) endif $(DEST)/libdyninstRT.o: libdyninstRT.o cp libdyninstRT.o ../../../lib/$(PLATFORM) $(DEST)/RTpvmPiggy.o: RTpvmPiggy.o cp RTpvmPiggy.o ../../../lib/$(PLATFORM) $(DEST)/DYNINSTstartCode.o: DYNINSTstartCode.o cp DYNINSTstartCode.o ../../../lib/$(PLATFORM) $(DEST)/DYNINSTendCode.o: DYNINSTendCode.o cp DYNINSTendCode.o ../../../lib/$(PLATFORM)