# #! # @file ./main/src/Makefile # # @brief Build JVM using main program entry point and library archive # # (Please refer to @link ./roster.sh roster.sh@endlink as to why # the @@file directive is constructed the way that it is.) # # @see @link ./Makefile ./Makefile@endlink # # @see @link support/MakeSetup support/MakeSetup@endlink # # @see @link support/MakeRules support/MakeRules@endlink # # # @section Control # # \$URL$ # # \$Id$ # # Copyright 2005 The Apache Software Foundation # or its licensors, as applicable. # # Licensed 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. # # @version \$LastChangedRevision$ # # @date \$LastChangedDate$ # # @author \$LastChangedBy$ # # @section Reference # #/ /* # (Use #! and #/ with dox-filter.sh to fool Doxygen into # parsing this non-source text file for the documentation set. # Use the above open comment to force termination of parsing # since it is not a Doxygen-style 'C' comment.) # # ################################################################### # # Create the 'bootjvm' binary # # Set up directory knowledge and basic structure TOPDIR=../.. include $(TOPDIR)/support/MakeSetup # Roster of C source files and C header files C_SOURCES=jvmmain.c # Target to build BIN_TARGET=$(BINDIR)/bootjvm$(DOT_BIN_EXTENSION) # Additional include paths, before main list PRE_INCLUDE_PATHS:=-I$(TOPDIR)/jvm/src # Linkage flags to pick up JVM library, Posix thread library, # math library, and compression library. LLFLAGS:=-ljvm -lpthread -lm -lz # Build rules include $(TOPDIR)/support/MakeRules # # Pick up JVM library dependency, declare both the library and # the top-level directory where its source code resides. # (This dependency makes SURE that the library is built properly. # It depends on the $(TOPDIR)/Makefile token to compile the # requested library.) # LIB_DEPEND_ARCHIVE=$(LIBJVM_LIBDIR)/libjvm.$(AR_ARCHIVE) LIB_DEPEND_TOKEN=libjvm $(LIB_DEPEND_ARCHIVE):: $(MAKE) -C $(TOPDIR) libjvm # Default rule all:: $(LIB_DEPEND_ARCHIVE) $(BIN_TARGET) ################################################################### # # EOF