3 # Common makefile template for rtinst library. This file is not
4 # intended to be a useful Makefile in isolation; instead, it should be
5 # included from within an architecture-specific Makefile.
7 # $Log: make.module.tmpl,v $
8 # Revision 1.3 1995/02/21 16:27:55 jcargill
9 # Changes to new build system so rtinst builds for all archs
11 # Revision 1.2 1995/02/16 09:11:29 markc
12 # Added support for RTfirst.o and RTend.o which mark the beginning and end
15 # Revision 1.1 1995/01/30 18:30:31 jcargill
16 # Major build system reorganization
21 TARGET = libdyninstRT.a
23 ALT_TARGET = DYNINSTstartCode.o DYNINSTendCode.o
28 SRCS += ../src/RTend.c
29 SRCS2 += ../src/RTend.c
31 DYNSRCS = ../src/DYNINSTstartCode.c \
32 ../src/DYNINSTendCode.c
34 LIBS += /usr/lib/libkvm.a
36 all: $(TARGET) $(TARGET2) $(ALT_TARGET)
39 # override standard link rule; libdyninst is not really a library or a program.
43 OBJS = $(patsubst %.C, %.o, $(filter %.C,$(notdir $(SRCS)))) \
44 $(patsubst %.c, %.o, $(filter %.c,$(notdir $(SRCS)))) \
45 $(patsubst %.s, %.o, $(filter %.s,$(notdir $(SRCS)))) \
46 $(IGEN_GEN_SRCS:%.C=%.o)
48 $(TARGET): $(OBJS) $(LIBS)
49 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
52 # override standard install rule; provide a default DEST if not already set
55 DEST = $(TO_CORE)/../lib/$(PLATFORM)
58 UNCOMMON_INSTALL= true
59 install: $(DEST)/$(TARGET) $(DEST)/$(TARGET2) $(DEST)/DYNINSTstartCode.o \
60 $(DEST)/DYNINSTendCode.o
62 $(DEST)/libdyninstRT.a: libdyninstRT.a
63 cp libdyninstRT.a ../../../lib/$(PLATFORM)
65 $(DEST)/DYNINSTstartCode.o: DYNINSTstartCode.o
66 cp DYNINSTstartCode.o ../../../lib/$(PLATFORM)
68 $(DEST)/DYNINSTendCode.o: DYNINSTendCode.o
69 cp DYNINSTendCode.o ../../../lib/$(PLATFORM)