1 | #
|
---|
2 | # Copyright 1999-2000,2004 The Apache Software Foundation.
|
---|
3 | #
|
---|
4 | # Licensed under the Apache License, Version 2.0 (the "License");
|
---|
5 | # you may not use this file except in compliance with the License.
|
---|
6 | # You may obtain a copy of the License at
|
---|
7 | #
|
---|
8 | # http://www.apache.org/licenses/LICENSE-2.0
|
---|
9 | #
|
---|
10 | # Unless required by applicable law or agreed to in writing, software
|
---|
11 | # distributed under the License is distributed on an "AS IS" BASIS,
|
---|
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
13 | # See the License for the specific language governing permissions and
|
---|
14 | # limitations under the License.
|
---|
15 | #
|
---|
16 | #
|
---|
17 | #
|
---|
18 | # $Id: Makefile.in,v 1.15 2004/09/08 13:55:31 peiyongz Exp $
|
---|
19 | #
|
---|
20 |
|
---|
21 | ###################################################################
|
---|
22 | # IMPORTANT NOTE #
|
---|
23 | ###################################################################
|
---|
24 | # If you are going to do the OS390BATCH build, make sure you have #
|
---|
25 | # the OS390BATCH environment variable set. #
|
---|
26 | # #
|
---|
27 | # export OS390BATCH=1 #
|
---|
28 | # #
|
---|
29 | ###################################################################
|
---|
30 |
|
---|
31 | PLATFORM = @platform@
|
---|
32 | COMPILER = @compiler@
|
---|
33 | CXXVER = @cxxver@
|
---|
34 | GCC = @GCC@
|
---|
35 | GXX = @GXX@
|
---|
36 | CXXFLAGS = @cxxflags@
|
---|
37 | CFLAGS = @cflags@
|
---|
38 | LDFLAGS = @ldflags@
|
---|
39 | THREADS = @threads@
|
---|
40 | EXTRA_LIBS = @extra_libs@
|
---|
41 | PREFIX = @prefix@
|
---|
42 |
|
---|
43 | include ${XERCESCROOT}/version.incl
|
---|
44 | include ../Makefile.incl
|
---|
45 |
|
---|
46 | APP_NAME=DOMCount
|
---|
47 |
|
---|
48 | OUTDIR= ${XERCESCOUT}/bin/obj/${APP_NAME}
|
---|
49 | EXEC= ${XERCESCOUT}/bin
|
---|
50 | OBJS= ${OUTDIR}/DOMCount.o
|
---|
51 | SRC= ${XERCESCOUT}/samples/${APP_NAME}
|
---|
52 |
|
---|
53 | ## OS390BATCH
|
---|
54 | ifeq (${OS390BATCH},1)
|
---|
55 | BATCH_TARGET= "//'${LOADMOD}(${APP_NAME})'"
|
---|
56 | all:: makedir ${BATCH_TARGET}
|
---|
57 | else
|
---|
58 | all:: makedir ${EXEC}/${APP_NAME}
|
---|
59 | endif
|
---|
60 |
|
---|
61 | makedir::
|
---|
62 | -mkdir -p $(OUTDIR)
|
---|
63 |
|
---|
64 | ${EXEC}/${APP_NAME}:: ${OBJS}
|
---|
65 | ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
|
---|
66 | ${BATCH_TARGET}:: ${OBJS}
|
---|
67 | ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
|
---|
68 |
|
---|
69 | $(OUTDIR)/DOMCount.o:: ${SRC}/DOMCount.cpp
|
---|
70 | ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/DOMCount.o ${SRC}/DOMCount.cpp
|
---|
71 |
|
---|
72 | clean::
|
---|
73 | rm -f ${OBJS} ${EXEC}/${APP_NAME}
|
---|
74 |
|
---|
75 | distclean:: clean
|
---|
76 | rm -f Makefile
|
---|