Handling for async memory/register reads and writes in ProcControlAPI
[dyninst.git] / proccontrol / make.module.tmpl
1 # -*- makefile -*-
2 # Common makefile template for the dyninstAPI library.  This file is not
3 # intended to be a useful Makefile in isolation; instead, it should be
4 # included from within an architecture-specific Makefile.
5 #
6 # $Id: make.module.tmpl,v 1.1 2008/06/30 19:40:26 legendre Exp $
7 #
8
9 SUITE_NAME      = ProcessControl
10 RELEASE_NUM     = 0.1
11
12 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
13 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
14
15 ifdef STATIC_COMPS
16 STATIC_LIBRARY = true
17 TARGET = libpcontrol.a
18 else
19 TARGET = libpcontrol.so
20 MYFLAGS += -fPIC
21 endif
22
23 LDFLAGS += -L../../common/$(PLATFORM)
24
25 ifndef USES_NATIVE_CC
26 LD              = $(GXX)
27 LDFLAGS         += -shared
28 CFLAGS          += 
29 CXXFLAGS        += 
30 else
31 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
32 LDFLAGS         += -G
33 endif #sparc
34 endif #USES_NATIVE
35 TFLAGS          +=
36
37 TO_INC     = ../h
38 PUBLIC_H   = Decoder.h \
39                                  Event.h \
40                                  Generator.h \
41                                  Handler.h \
42                                  Mailbox.h \
43                                  PCErrors.h \
44                                  Process.h \
45                                  EventType.h
46
47 SRCS         += ../src/event.C \
48                 ../src/generator.C \
49                 ../src/handler.C \
50       ../src/mailbox.C \
51                 ../src/process.C \
52                 ../src/pcerrors.C \
53                 ../src/procpool.C \
54                 ../src/irpc.C \
55                 ../src/response.C
56
57
58 IFLAGS       += -I../src -I../h
59
60 # All that, and we finally get a target...
61 all: $(TARGET) $(EXTRA_LIBS)