Initial implementation of ProcControlAPI for Linux/x86 family
[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 ifndef USES_NATIVE_CC
24 LD              = $(GXX)
25 LDFLAGS         += -shared
26 CFLAGS          += 
27 CXXFLAGS        += 
28 else
29 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
30 LDFLAGS         += -G
31 endif #sparc
32 endif #USES_NATIVE
33 TFLAGS          +=
34
35 TO_INC     = ../h
36 PUBLIC_H   = Decoder.h \
37                                  Event.h \
38                                  Generator.h \
39                                  Handler.h \
40                                  Mailbox.h \
41                                  PCErrors.h \
42                                  Process.h \
43                                  EventType.h
44
45 SRCS         += ../src/event.C \
46                 ../src/generator.C \
47                 ../src/handler.C \
48       ../src/mailbox.C \
49                 ../src/process.C \
50                 ../src/pcerrors.C \
51                 ../src/procpool.C \
52                 ../src/irpc.C
53
54
55 IFLAGS       += -I../src -I../h
56
57 # All that, and we finally get a target...
58 all: $(TARGET) $(EXTRA_LIBS)