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.
11 TARGET = libdyninstAPI_RT.o
17 SRCS += ../src/RTcommon.c
19 ifdef USES_SHM_SAMPLING
20 CFLAGS += -DSHM_SAMPLING
25 all: $(TARGET) $(TARGET2) $(ALT_TARGET)
28 # override standard link rule; libdyninst is not really a library or a program.
32 OBJS = $(patsubst %.C, %.o, $(filter %.C,$(notdir $(SRCS)))) \
33 $(patsubst %.c, %.o, $(filter %.c,$(notdir $(SRCS)))) \
34 $(patsubst %.s, %.o, $(filter %.s,$(notdir $(SRCS)))) \
35 $(patsubst %.S, %.o, $(filter %.S,$(notdir $(SRCS)))) \
36 $(IGEN_GEN_SRCS:%.C=%.o)
38 $(TARGET): $(OBJS) $(LIBS)
39 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) -lgcc
42 # override standard install rule; provide a default DEST if not already set
45 DEST = $(TO_CORE)/../lib/$(PLATFORM)
48 UNCOMMON_INSTALL= true
50 install: $(DEST)/$(TARGET) $(SYSEXTRAS)
52 $(DEST)/libdyninstAPI_RT.o: libdyninstAPI_RT.o
53 cp libdyninstAPI_RT.o ../../../lib/$(PLATFORM)