-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile.test
70 lines (49 loc) · 1.78 KB
/
makefile.test
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
# (C) Copyright IBM Corporation 1995, 1997, 1998, 1999, 2000, 2002, 2003
# 2004, 2005, 2006, 2007, 2008, 2009
# Module Name: makefile.windows
# DESCRIPTIVE NAME WebSphere MQ Save Queue Manager Object
# Definitions using PCFs (ms03 supportpac)
#
# This Makefile makes the saveqmgr executables on windows (ms03)
#
# Set the suffix for the target files
EXESUF = exe
# CC defines the compiler.
# ibm compiler: CC = icc
CC = cl
# LC defines the linker
# ibm linker: LC = icc
LC = link
# The MQ install directory
MQHLD="c:\IBMPROG\WebSphereMQ"
#MQHLD=c:\mqm
# MQM library directory
MQMLIB = $(MQHLD)\tools\Lib
# set LIBS to list all the libraries ms03 should link with.
LIBS = mqm.Lib
LIBC = mqic32.lib
# set INCS to list all the header the compiler needs
INCS = -I. -I$(MQHLD)\tools\c\include
# Set CCOPTS - the compiler options.
CCOPTS = /c /Fo$*.$(OBJSUF)
CCOPTC = /c -DUSEMQCNX /Fo$@
# Set LCOPTS - the linker options
# IBM linker options: LCOPTS = /Fe $@
LCOPTS = /out:$@ /LIBPATH:$(MQMLIB) $(LIBS)
LCOPTC = /out:$@ /LIBPATH:$(MQMLIB) $(LIBC)
# Set the suffix for the object files
OBJSUF = obj
RM = del
# Include the file which does the real work!
#include makefile.common
TARGET = browseTest.$(EXESUF)
all: $(TARGET)
# The list of objects needed to make each executable
OBJS = browseTest.$(OBJSUF)
$(TARGET) : $(OBJS)
$(LC) $(LCOPTS) $(OBJS)
#the object files depend on the corresponding source files
.c.$(OBJSUF):
$(CC) $(CCOPTS) $(INCS) $<
browseTest.$(OBJSUF) : browseTest.c
$(CC) $(CCOPTC) $(INCS) browseTest.c