4 # Common makefile template for rtinst library. This file is not
5 # intended to be a useful Makefile in isolation; instead, it should be
6 # included from within an architecture-specific Makefile.
8 # $Log: make.module.tmpl,v $
9 # Revision 1.1 1997/03/18 19:45:25 buck
10 # first commit of dyninst library. Also includes:
11 # moving templates from paradynd to dyninstAPI
12 # converting showError into a function (in showerror.C)
13 # many ifdefs for BPATCH_LIBRARY in dyinstAPI/src.
19 TARGET = libdyninstAPI_RT.o
25 #SRCS += ../src/RTend.c
27 SRCS += ../src/RTcommon.c
29 ifdef USES_SHM_SAMPLING
30 CFLAGS += -DSHM_SAMPLING
35 all: $(TARGET) $(TARGET2) $(ALT_TARGET)
38 # override standard link rule; libdyninst is not really a library or a program.
42 OBJS = $(patsubst %.C, %.o, $(filter %.C,$(notdir $(SRCS)))) \
43 $(patsubst %.c, %.o, $(filter %.c,$(notdir $(SRCS)))) \
44 $(patsubst %.s, %.o, $(filter %.s,$(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) -lgcc
52 # override standard install rule; provide a default DEST if not already set
55 DEST = $(TO_CORE)/../lib/$(PLATFORM)
58 UNCOMMON_INSTALL= true
60 install: $(DEST)/$(TARGET)
62 $(DEST)/libdyninstAPI_RT.o: libdyninstAPI_RT.o
63 cp libdyninstAPI_RT.o ../../../lib/$(PLATFORM)