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

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

xerces added

Line 
1#
2# Copyright 2001,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# $Id: Makefile.in,v 1.9 2004/09/08 13:55:34 peiyongz Exp $
18# $Log: Makefile.in,v $
19# Revision 1.9  2004/09/08 13:55:34  peiyongz
20# Apache License Version 2.0
21#
22# Revision 1.8  2004/07/09 15:54:38  peiyongz
23# Build on HP-Itanium, aCC A.05.52
24#
25# Revision 1.7  2003/07/28 20:02:41  neilg
26# fix to permit the samples source to be copied from a non-writable to a writable part of the filesystem, then compiled.  Binaries will also be dropped in a writable directory.  This should make experimentation easier on multi-user systems.  Patch by Steve Dulin
27#
28# Revision 1.6  2002/08/19 15:13:38  tng
29# [Bug 11229] bogus -I statements order in CXXFLAGS.
30#
31# Revision 1.5  2002/07/26 16:36:32  tng
32# [Bug 2681] Can't build with gcc/g++ not named 'gcc'/'g++'.  Patch from Jonathan Lennox.
33#
34# Revision 1.4  2002/07/05 16:21:33  tng
35# [Bug 10252] Modify FreeBSD build environment for the samples.   Patch from Max Gotlib.
36#
37# Revision 1.3  2001/11/21 22:09:49  peiyongz
38# Copy Right date
39#
40# Revision 1.2  2001/11/21 19:05:23  peiyongz
41# SEnumVal: GrammarType checked
42#
43#
44
45###################################################################
46#                    IMPORTANT NOTE                               #
47###################################################################
48# If you are going to do the OS390BATCH build, make sure you have #
49# the OS390BATCH environment variable set.                        #
50#                                                                 #
51#   export OS390BATCH=1                                           #
52#                                                                 #
53###################################################################
54
55PLATFORM = @platform@
56COMPILER = @compiler@
57CXXVER = @cxxver@
58GCC = @GCC@
59GXX = @GXX@
60CXXFLAGS = @cxxflags@
61CFLAGS = @cflags@
62LDFLAGS = @ldflags@
63THREADS = @threads@
64EXTRA_LIBS = @extra_libs@
65PREFIX = @prefix@
66
67include ${XERCESCROOT}/version.incl
68include ../Makefile.incl
69
70APP_NAME=SEnumVal
71
72OUTDIR= ${XERCESCOUT}/bin/obj/${APP_NAME}
73EXEC=   ${XERCESCOUT}/bin
74OBJS=   ${OUTDIR}/SEnumVal.o
75SRC=    ${XERCESCOUT}/samples/${APP_NAME}
76HEADER_FILES=
77
78## OS390BATCH
79ifeq (${OS390BATCH},1)
80BATCH_TARGET= "//'${LOADMOD}(${APP_NAME})'"
81all:: makedir ${BATCH_TARGET}
82else
83all:: makedir ${EXEC}/${APP_NAME}
84endif
85
86makedir::
87        -mkdir -p $(OUTDIR)
88
89${EXEC}/${APP_NAME}:: ${OBJS}
90        ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
91${BATCH_TARGET}:: ${OBJS}
92        ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
93
94## SOLARIS
95ifeq (${PLATFORM}, SOLARIS)
96$(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES}
97        ${CC} ${INCLUDES} ${CMP} -ptr${OUTDIR} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp
98else
99$(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES}
100        ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp
101endif
102
103clean::
104        rm -f ${OBJS} ${EXEC}/${APP_NAME}
105
106distclean::     clean
107        rm -f Makefile
Note: See TracBrowser for help on using the repository browser.