-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile.nsk
54 lines (36 loc) · 1.42 KB
/
makefile.nsk
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
# This Makefile makes the saveqmgr executable on NSK (ms03)
# (C) Copyright IBM Corporation 1995, 1997, 1998, 1999, 2000, 2002, 2003
# 2004, 2005, 2006, 2007, 2008, 2009
#
MQINCDIR = /G/system/zmqslib
MQINC= cmqc.h cmqcfc.h cmqxc.h
all: ${MQINC} mqmlibnc.o saveqmgr
# set TARGET to the name of the executable to create
TARGET = saveqmgr
# CC defines the compiler. Set to "c89" for ANSI compliant C compiler.
CC = c89
# Set CCOPTS - the compiler options.
CCOPTS = -c -DUNIX -Wextensions -Wsystype=guardian -Wnowarn=262,1506,770 -I. -I/G/system/zmqslib
LFLAGS= -Whighpin=on -Whighrequesters=on -Wrunnamed -Winspect -Wsaveabend -Wsystype=guardian
OBJS = saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue.o authinfo.o
saveqmgr : $(OBJS)
$(CC) -o saveqmgr $(OBJS) mqmlibnc.o -L. $(LFLAGS)
saveqmgr.o : saveqmgr.c saveqmgr.h
channel.o : channel.c saveqmgr.h
mqutils.o : mqutils.c saveqmgr.h
process.o : process.c saveqmgr.h
namelist.o : namelist.c saveqmgr.h
qmgr.o : qmgr.c saveqmgr.h
queue.o : queue.c saveqmgr.h
authinfo.o : authinfo.c saveqmgr.h
#the object files depend on the corresponding source files
.c.o:
$(CC) $(CCOPTS) -I. -I/usr/include -I/usr/include/sys $<
mqmlibnc.o: ${MQINCDIR}/mqmlibnc
cp $< $@
cmqc.h: ${MQINCDIR}/cmqc.h
cp $< $@
cmqcfc.h: ${MQINCDIR}/cmqcfc.h
cp $< $@
cmqxc.h: ${MQINCDIR}/cmqxc.h
cp $< $@