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

Revision 358, 2.6 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# $Id: Makefile.in,v 1.17 2004/09/08 13:55:31 peiyongz Exp $
18#
19
20###################################################################
21#                    IMPORTANT NOTE                               #
22###################################################################
23# If you are going to do the OS390BATCH build, make sure you have #
24# the OS390BATCH environment variable set.                        #
25#                                                                 #
26#   export OS390BATCH=1                                           #
27#                                                                 #
28###################################################################
29
30PLATFORM = @platform@
31COMPILER = @compiler@
32CXXVER = @cxxver@
33GCC = @GCC@
34GXX = @GXX@
35CXXFLAGS = @cxxflags@
36CFLAGS = @cflags@
37LDFLAGS = @ldflags@
38THREADS = @threads@
39EXTRA_LIBS = @extra_libs@
40PREFIX = @prefix@
41
42include ${XERCESCROOT}/version.incl
43include ../Makefile.incl
44
45APP_NAME=EnumVal
46
47OUTDIR= ${XERCESCOUT}/bin/obj/${APP_NAME}
48EXEC=   ${XERCESCOUT}/bin
49OBJS=   ${OUTDIR}/EnumVal.o
50SRC=    ${XERCESCOUT}/samples/${APP_NAME}
51HEADER_FILES=
52
53## OS390BATCH
54ifeq (${OS390BATCH},1)
55BATCH_TARGET= "//'${LOADMOD}(${APP_NAME})'"
56all:: makedir ${BATCH_TARGET}
57else
58all:: makedir ${EXEC}/${APP_NAME}
59endif
60
61makedir::
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## SOLARIS
70ifeq (${PLATFORM}, SOLARIS)
71$(OUTDIR)/EnumVal.o:: ${SRC}/EnumVal.cpp ${HEADER_FILES}
72        ${CC} ${INCLUDES} ${CMP} -ptr${OUTDIR} -o $(OUTDIR)/EnumVal.o ${SRC}/EnumVal.cpp
73else
74$(OUTDIR)/EnumVal.o:: ${SRC}/EnumVal.cpp ${HEADER_FILES}
75        ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/EnumVal.o ${SRC}/EnumVal.cpp
76endif
77
78clean::
79        rm -f ${OBJS} ${EXEC}/${APP_NAME}
80
81distclean::     clean
82        rm -f Makefile
Note: See TracBrowser for help on using the repository browser.