Build fix for AIX
[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_MAJOR   = 0
11 RELEASE_MINOR = 1
12
13 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
14 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
15
16 ifdef STATIC_COMPS
17 STATIC_LIBRARY = true
18 TARGET = libpcontrol.a
19 else
20 TARGET = libpcontrol.so
21 MYFLAGS += -fPIC
22 endif
23
24 LDFLAGS += -L../../common/$(PLATFORM)
25
26 ifndef USES_NATIVE_CC
27 LD              = $(GXX)
28 LDFLAGS         += -shared
29 CFLAGS          += 
30 CXXFLAGS        += 
31 else
32 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
33 LDFLAGS         += -G
34 endif #sparc
35 endif #USES_NATIVE
36 TFLAGS          +=
37
38 TO_INC     = ../h
39 PUBLIC_H   = Decoder.h \
40                                  Event.h \
41                                  Generator.h \
42                                  Handler.h \
43                                  Mailbox.h \
44                                  PCErrors.h \
45                                  Process.h \
46                                  EventType.h
47
48 SRCS         += ../src/event.C \
49                 ../src/generator.C \
50                 ../src/handler.C \
51       ../src/mailbox.C \
52                 ../src/process.C \
53                 ../src/pcerrors.C \
54                 ../src/procpool.C \
55                 ../src/irpc.C \
56                 ../src/response.C
57
58
59 IFLAGS       += -I../src -I../h
60
61 # All that, and we finally get a target...
62 all: $(TARGET) $(EXTRA_LIBS)