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

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

xerces added

Line 
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.5 2004/09/08 13:55:32 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
31PLATFORM = @platform@
32COMPILER = @compiler@
33CXXVER = @cxxver@
34GCC = @GCC@
35GXX = @GXX@
36CXXFLAGS = @cxxflags@
37CFLAGS = @cflags@
38LDFLAGS = @ldflags@
39THREADS = @threads@
40EXTRA_LIBS = @extra_libs@
41PREFIX = @prefix@
42
43include ${XERCESCROOT}/version.incl
44include ../Makefile.incl
45
46APP_NAME=PSVIWriter
47
48OUTDIR= ${XERCESCROOT}/bin/obj/${APP_NAME}
49EXEC=   ${XERCESCROOT}/bin
50OBJS=   ${OUTDIR}/PSVIWriter.o ${OUTDIR}/PSVIUni.o ${OUTDIR}/PSVIWriterHandlers.o
51SRC=    ${XERCESCROOT}/samples/${APP_NAME}
52HEADER_FILES=${SRC}/PSVIWriter.hpp ${SRC}/PSVIUni.hpp ${SRC}/PSVIWriterHandlers.hpp
53
54## OS390BATCH
55ifeq (${OS390BATCH},1)
56BATCH_TARGET= "//'${LOADMOD}(PSVIWRIT)'"
57all:: makedir ${BATCH_TARGET}
58else
59all:: makedir ${EXEC}/${APP_NAME}
60endif
61
62makedir::
63        -mkdir -p $(OUTDIR)
64
65${EXEC}/${APP_NAME}:: ${OBJS}
66        ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
67${BATCH_TARGET}:: ${OBJS}
68        ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
69
70$(OUTDIR)/PSVIWriter.o:: ${SRC}/PSVIWriter.cpp ${HEADER_FILES}
71        ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/PSVIWriter.o ${SRC}/PSVIWriter.cpp
72
73$(OUTDIR)/PSVIUni.o:: ${SRC}/PSVIUni.cpp ${HEADER_FILES}
74        ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/PSVIUni.o ${SRC}/PSVIUni.cpp
75
76$(OUTDIR)/PSVIWriterHandlers.o:: ${SRC}/PSVIWriterHandlers.cpp ${HEADER_FILES}
77        ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/PSVIWriterHandlers.o ${SRC}/PSVIWriterHandlers.cpp
78
79clean::
80        rm -f ${OBJS} ${EXEC}/${APP_NAME}
81
82distclean::clean
83        rm -f Makefile
Note: See TracBrowser for help on using the repository browser.