-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.mq
98 lines (91 loc) · 4.5 KB
/
Makefile.mq
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
MQCOMM @(#) SupportPacs/ms03/Makefile.mq, supportpacs, MS03 1.1 08/12/05 12:06:00
/**********************************************************************/
/* <OCO_COPYRIGHT> */
/* IBM Confidential */
/* */
/* OCO Source Materials */
/* */
/* 5724-H72 */
/* (c) Copyright IBM Corp. 2004, 2008 */
/* */
/* The source code for this program is not published or other- */
/* wise divested of its trade secrets, irrespective of what has */
/* been deposited with the U.S. Copyright Office. */
/* <END_COPYRIGHT> */
/**********************************************************************/
/**********************************************************************/
/* This Makefile.mq is used to build the WebSphere MQ Save Queue */
/* Manager Object Definitions using PCFs (ms03 supportpac) */
/**********************************************************************/
/**********************************************************************/
/* BASEOBJS is the list of source files to be included in each */
/* executable. */
/**********************************************************************/
BASEOBJS=Object(args) Object(channel) Object(mqutils) Object(process) \
Object(namelist) Object(qmgr) Object(queue) Object(authinfo) \
Object(listener) Object(services) Object(stgclass) Object(system) \
Object(usage) Object(log) Object(cfstruct) Object(archive) \
Object(oam) Object(topic) Object(subscript)
/**********************************************************************/
/* Create the list of libraries required to build the executables. */
/**********************************************************************/
#if defined(ArchitectureFamilyPc)
DEPS=
LIBS=mqm
DEPC=
LIBC=mqic
#else
#if defined(ArchitectureSolaris2)
BASELIBS=-lmqmcs -lmqmzse -lc -lm -lsocket
#elif defined(ArchitectureLinux2) || defined(ArchitectureHp) || defined(ArchitectureRsAix)
BASELIBS=-lm
#endif
DEPS=DevSharedLibrary(mqm,NP)
LIBS=SharedFlag(mqm,NP) $(BASELIBS)
DEPC=DevSharedLibrary(mqic,NP)
LIBC=SharedFlag(mqic,NP) $(BASELIBS)
#endif
/**********************************************************************/
/* Add any extra compile flags not added by mqmake automatically */
/**********************************************************************/
#if defined(ArchitectureLinux2)
CFLAGS.directory=-DUNIX -Wall
#elif defined(ArchitectureHp)
CFLAGS.directory=-DUNIX -Ae
#elif defined(ArchitectureFamilyUnix)
CFLAGS.directory=-DUNIX
#endif
/**********************************************************************/
/* Create an extra copy of saveqmgr to compile with -DUSEMQCNX */
/**********************************************************************/
LinkSourceFile(saveqmgr.c,saveqmgrc.c)
CFLAGS.saveqmgrc=-DUSEMQCNX
/**********************************************************************/
/* Build all the source parts. */
/**********************************************************************/
CompileObject(NP,saveqmgr)
CompileBuildObject(NP,saveqmgrc)
CompileObject(NP,args)
CompileObject(NP,channel)
CompileObject(NP,mqutils)
CompileObject(NP,process)
CompileObject(NP,namelist)
CompileObject(NP,qmgr)
CompileObject(NP,queue)
CompileObject(NP,authinfo)
CompileObject(NP,listener)
CompileObject(NP,services)
CompileObject(NP,stgclass)
CompileObject(NP,system)
CompileObject(NP,usage)
CompileObject(NP,log)
CompileObject(NP,cfstruct)
CompileObject(NP,archive)
CompileObject(NP,oam)
CompileObject(NP,topic)
CompileObject(NP,subscript)
/**********************************************************************/
/* Link both the server and client executables. */
/**********************************************************************/
BuildProgram(NP,saveqmgr,Object(saveqmgr) $(BASEOBJS),$(DEPS),$(LIBS))
BuildProgram(NP,saveqmgrc,Object(saveqmgrc) $(BASEOBJS),$(DEPC),$(LIBC))