source: NonGTP/Xerces/xerces/samples/DOMPrint/Makefile.in @ 358

Revision 358, 3.1 KB checked in by bittner, 19 years ago (diff)

xerces added

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