blob: c75f42e098080b8d7c77278e6678fc6ef288cb82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
#
#*******************************************************************************
#* $RCSfile: Makefile,v $
#*
#* Description:
#*
#* Last change: $Date: 2006/06/27 09:08:56 $ $Revision: 1.9 $
#*
#* Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use of this
#* product is subject to license terms.
#*
#*******************************************************************************
#
PRJ=../..
include $(PRJ)/Makefile.common
APOCSOURCES = \
papi.c \
papiConnection.c \
papiDaemon.c \
papiDatabase.c \
papiInternal.c \
papiLayerList.c \
papiListenerList.c \
papiMessage.c \
papiSAXParserContext.c \
papiStringList.c \
papiEntityList.c \
papiUtils.c
APOCOBJS = $(APOCSOURCES:%.c=$(OBJDIR)/%.o) $(OBJDIR)/papiPort.o
LIBAPOC = $(LIBDIR)/$(SOPREFIX)apoc$(SOSUFFIX)
APOCINCLUDES = $(LIBXML2INCLUDES) $(INCLUDES)
APOCLIBS = $(LIBXML2LIBS) $(GSSLIBS) $(LIBS)
ifdef SOLARIS
APOCLIBS += -lscf
endif
APOCJAVASOURCE = papiJava.c
APOCJAVAOBJS = $(APOCJAVASOURCE:%.c=$(OBJDIR)/%.o)
LIBAPOCJAVA = $(LIBDIR)/$(SOPREFIX)apoc_java$(SOSUFFIX)
ifdef UNX
APOCJAVALIBS = -L$(LIBDIR) -lapoc $(LIBS)
else
APOCJAVALIBS = apoc.lib $(LIBS)
endif
APOCWRAPSOURCE = papiWrap.c
APOCWRAPOBJS = $(APOCWRAPSOURCE:%.c=$(OBJDIR)/%.o)
LIBAPOCWRAP = $(LIBDIR)/$(SOPREFIX)apocwrap$(SOSUFFIX)
ifdef UNX
APOCWRAPLIBS = -L$(LIBDIR) -lapoc $(LIBS) -lrt
else
APOCWRAPLIBS = apoc.lib $(LIBS)
endif
all: apoc apoc-adapter-java
clean: apocclean apoc-adapter-javaclean
apoc: mkdirs $(LIBAPOC)
$(LIBAPOC): $(APOCOBJS)
ifdef UNX
$(CC) $(LDFLAGSSO) -o $(LIBAPOC) $(APOCOBJS) $(APOCLIBS) -ldl
else
$(LINK) $(LDFLAGSSO) $(APOCOBJS) /OUT:$(LIBAPOC) $(APOCLIBS)
endif
apocclean:
rm -f $(APOCOBJS) $(LIBAPOC)
apoc-adapter-java: $(LIBAPOCJAVA)
$(LIBAPOCJAVA): $(APOCJAVAOBJS)
ifdef UNX
$(CC) $(LDFLAGSSO) -o$(LIBAPOCJAVA) $(APOCJAVAOBJS) $(APOCJAVALIBS)
else
$(LINK) $(LDFLAGSSO) $(APOCJAVAOBJS) /OUT:$(LIBAPOCJAVA) $(APOCJAVALIBS)
endif
apoc-adapter-javaclean:
rm -f $(APOCJAVAOBJS) $(LIBAPOCJAVA)
apocwrap: $(LIBAPOCWRAP)
$(LIBAPOCWRAP): $(APOCWRAPOBJS)
ifdef UNX
$(CC) $(LDFLAGSSO) -o$(LIBAPOCWRAP) $(APOCWRAPOBJS) $(APOCWRAPLIBS)
else
$(LINK) $(LDFLAGSSO) $(APOCWRAPOBJS) /OUT:$(LIBAPOCWRAP) $(APOCWRAPLIBS)
endif
apocwrapclean:
rm -f $(APOCWRAPOBJS) $(LIBAPOCWRAP)
mkdirs:
$(mkoutdirs)
$(OBJDIR)/%.o: %.c
ifdef UNX
$(CC) $(CFLAGSSO) $(APOCINCLUDES) -c $*.c -o $(OBJDIR)/$*.o
else
$(CC) $(CFLAGSSO) -DPAPI_EXPORTS $(APOCINCLUDES) -c $*.c -Fo$(OBJDIR)/$*.o -Fd$(OBJDIR)/$*.pdb
endif
|