hotspot/make/solaris/makefiles/adlc.make
changeset 11721 dcd1f62c9caf
parent 11429 e894217a5d94
child 13963 e5b53c306fb5
equal deleted inserted replaced
11720:b20268d74484 11721:dcd1f62c9caf
    60 # set INCLUDES for C preprocessor
    60 # set INCLUDES for C preprocessor
    61 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED)
    61 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED)
    62 INCLUDES += $(Src_Dirs_I:%=-I%)
    62 INCLUDES += $(Src_Dirs_I:%=-I%)
    63 
    63 
    64 # set flags for adlc compilation
    64 # set flags for adlc compilation
    65 CPPFLAGS = $(SYSDEFS) $(INCLUDES)
    65 CXXFLAGS = $(SYSDEFS) $(INCLUDES)
    66 
    66 
    67 # Force assertions on.
    67 # Force assertions on.
    68 CPPFLAGS += -DASSERT
    68 CXXFLAGS += -DASSERT
    69 
    69 
    70 ifndef USE_GCC
    70 ifndef USE_GCC
    71   # We need libCstd.so for adlc 
    71   # We need libCstd.so for adlc 
    72   CFLAGS += -library=Cstd -g
    72   CFLAGS += -library=Cstd -g
    73   LFLAGS += -library=Cstd -g
    73   LFLAGS += -library=Cstd -g
   128 
   128 
   129 all: $(EXEC)
   129 all: $(EXEC)
   130 
   130 
   131 $(EXEC) : $(OBJECTS)
   131 $(EXEC) : $(OBJECTS)
   132 	@echo Making adlc
   132 	@echo Making adlc
   133 	$(QUIETLY) $(LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS)
   133 	$(QUIETLY) $(LINK_NOPROF.CXX) -o $(EXEC) $(OBJECTS)
   134 
   134 
   135 # Random dependencies:
   135 # Random dependencies:
   136 $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp
   136 $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp
   137 
   137 
   138 # The source files refer to ostream.h, which sparcworks calls iostream.h
   138 # The source files refer to ostream.h, which sparcworks calls iostream.h
   226     print }'
   226     print }'
   227 
   227 
   228 $(OUTDIR)/%.o: %.cpp
   228 $(OUTDIR)/%.o: %.cpp
   229 	@echo Compiling $<
   229 	@echo Compiling $<
   230 	$(QUIETLY) $(REMOVE_TARGET)
   230 	$(QUIETLY) $(REMOVE_TARGET)
   231 	$(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE)
   231 	$(QUIETLY) $(COMPILE.CXX) -o $@ $< $(COMPILE_DONE)
   232 
   232 
   233 # Some object files are given a prefix, to disambiguate
   233 # Some object files are given a prefix, to disambiguate
   234 # them from objects of the same name built for the VM.
   234 # them from objects of the same name built for the VM.
   235 $(OUTDIR)/adlc-%.o: %.cpp
   235 $(OUTDIR)/adlc-%.o: %.cpp
   236 	@echo Compiling $<
   236 	@echo Compiling $<
   237 	$(QUIETLY) $(REMOVE_TARGET)
   237 	$(QUIETLY) $(REMOVE_TARGET)
   238 	$(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE)
   238 	$(QUIETLY) $(COMPILE.CXX) -o $@ $< $(COMPILE_DONE)
   239 
   239 
   240 # #########################################################################
   240 # #########################################################################
   241 
   241 
   242 clean	:
   242 clean	:
   243 	rm $(OBJECTS)
   243 	rm $(OBJECTS)