| # |
| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| # |
| # $Id: Makefile.in 568078 2007-08-21 11:43:25Z amassari $ |
| # $Log$ |
| # Revision 1.9 2004/09/08 13:55:34 peiyongz |
| # Apache License Version 2.0 |
| # |
| # Revision 1.8 2004/07/09 15:54:38 peiyongz |
| # Build on HP-Itanium, aCC A.05.52 |
| # |
| # Revision 1.7 2003/07/28 20:02:41 neilg |
| # 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 |
| # |
| # Revision 1.6 2002/08/19 15:13:38 tng |
| # [Bug 11229] bogus -I statements order in CXXFLAGS. |
| # |
| # Revision 1.5 2002/07/26 16:36:32 tng |
| # [Bug 2681] Can't build with gcc/g++ not named 'gcc'/'g++'. Patch from Jonathan Lennox. |
| # |
| # Revision 1.4 2002/07/05 16:21:33 tng |
| # [Bug 10252] Modify FreeBSD build environment for the samples. Patch from Max Gotlib. |
| # |
| # Revision 1.3 2001/11/21 22:09:49 peiyongz |
| # Copy Right date |
| # |
| # Revision 1.2 2001/11/21 19:05:23 peiyongz |
| # SEnumVal: GrammarType checked |
| # |
| # |
| |
| ################################################################### |
| # IMPORTANT NOTE # |
| ################################################################### |
| # If you are going to do the OS390BATCH build, make sure you have # |
| # the OS390BATCH environment variable set. # |
| # # |
| # export OS390BATCH=1 # |
| # # |
| ################################################################### |
| |
| PLATFORM = @platform@ |
| COMPILER = @compiler@ |
| CXXVER = @cxxver@ |
| GCC = @GCC@ |
| GXX = @GXX@ |
| CXXFLAGS = @cxxflags@ |
| CFLAGS = @cflags@ |
| LDFLAGS = @ldflags@ |
| THREADS = @threads@ |
| EXTRA_LIBS = @extra_libs@ |
| PREFIX = @prefix@ |
| |
| include ${XERCESCROOT}/version.incl |
| include ../Makefile.incl |
| |
| APP_NAME=SEnumVal |
| |
| OUTDIR= ${XERCESCOUT}/bin/obj/${APP_NAME} |
| EXEC= ${XERCESCOUT}/bin |
| OBJS= ${OUTDIR}/SEnumVal.o |
| SRC= ${XERCESCOUT}/samples/${APP_NAME} |
| HEADER_FILES= |
| |
| ## OS390BATCH |
| ifeq (${OS390BATCH},1) |
| BATCH_TARGET= "//'${LOADMOD}(${APP_NAME})'" |
| all:: makedir ${BATCH_TARGET} |
| else |
| all:: makedir ${EXEC}/${APP_NAME} |
| endif |
| |
| makedir:: |
| -mkdir -p $(OUTDIR) |
| |
| ${EXEC}/${APP_NAME}:: ${OBJS} |
| ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS} |
| ${BATCH_TARGET}:: ${OBJS} |
| ${LINK} ${PLATFORM_LIB_LINK_OPTIONS} ${OBJS} -o $@ ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS} |
| |
| ## SOLARIS |
| ifeq (${PLATFORM}, SOLARIS) |
| ifneq (${GXX}, yes) |
| $(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES} |
| ${CC} ${INCLUDES} ${CMP} -ptr${OUTDIR} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp |
| else |
| $(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES} |
| ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp |
| endif |
| else |
| $(OUTDIR)/SEnumVal.o:: ${SRC}/SEnumVal.cpp ${HEADER_FILES} |
| ${CC} ${INCLUDES} ${CMP} -o $(OUTDIR)/SEnumVal.o ${SRC}/SEnumVal.cpp |
| endif |
| |
| clean:: |
| rm -f ${OBJS} ${EXEC}/${APP_NAME} |
| |
| distclean:: clean |
| rm -f Makefile |