[358] | 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 |
|
---|
| 55 | PLATFORM = @platform@
|
---|
| 56 | COMPILER = @compiler@
|
---|
| 57 | CXXVER = @cxxver@
|
---|
| 58 | GCC = @GCC@
|
---|
| 59 | GXX = @GXX@
|
---|
| 60 | CXXFLAGS = @cxxflags@
|
---|
| 61 | CFLAGS = @cflags@
|
---|
| 62 | LDFLAGS = @ldflags@
|
---|
| 63 | THREADS = @threads@
|
---|
| 64 | EXTRA_LIBS = @extra_libs@
|
---|
| 65 | PREFIX = @prefix@
|
---|
| 66 |
|
---|
| 67 | include ${XERCESCROOT}/version.incl
|
---|
| 68 | include ../Makefile.incl
|
---|
| 69 |
|
---|
| 70 | APP_NAME=SEnumVal
|
---|
| 71 |
|
---|
| 72 | OUTDIR= ${XERCESCOUT}/bin/obj/${APP_NAME}
|
---|
| 73 | EXEC= ${XERCESCOUT}/bin
|
---|
| 74 | OBJS= ${OUTDIR}/SEnumVal.o
|
---|
| 75 | SRC= ${XERCESCOUT}/samples/${APP_NAME}
|
---|
| 76 | HEADER_FILES=
|
---|
| 77 |
|
---|
| 78 | ## OS390BATCH
|
---|
| 79 | ifeq (${OS390BATCH},1)
|
---|
| 80 | BATCH_TARGET= "//'${LOADMOD}(${APP_NAME})'"
|
---|
| 81 | all:: makedir ${BATCH_TARGET}
|
---|
| 82 | else
|
---|
| 83 | all:: makedir ${EXEC}/${APP_NAME}
|
---|
| 84 | endif
|
---|
| 85 |
|
---|
| 86 | makedir::
|
---|
| 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
|
---|
| 95 | ifeq (${PLATFORM}, SOLARIS)
|
---|
| 96 | $(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES}
|
---|
| 97 | ${CC} ${INCLUDES} ${CMP} -ptr${OUTDIR} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp
|
---|
| 98 | else
|
---|
| 99 | $(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES}
|
---|
| 100 | ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp
|
---|
| 101 | endif
|
---|
| 102 |
|
---|
| 103 | clean::
|
---|
| 104 | rm -f ${OBJS} ${EXEC}/${APP_NAME}
|
---|
| 105 |
|
---|
| 106 | distclean:: clean
|
---|
| 107 | rm -f Makefile
|
---|