2003-10-20 22:26:57 +00:00
|
|
|
##===- lib/Target/Sparc/Makefile ---------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2001-09-14 03:55:11 +00:00
|
|
|
LEVEL = ../../..
|
2001-09-14 03:47:57 +00:00
|
|
|
LIBRARYNAME = sparc
|
2002-09-23 13:12:28 +00:00
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
ExtraSource = Sparc.burm.cpp
|
2001-09-14 03:47:57 +00:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2002-09-23 13:12:28 +00:00
|
|
|
ifdef ENABLE_OPTIMIZED
|
|
|
|
DEBUG_FLAG =
|
|
|
|
else
|
|
|
|
DEBUG_FLAG = -D_DEBUG
|
|
|
|
endif
|
|
|
|
|
2003-11-07 00:38:09 +00:00
|
|
|
Sparc.burg.in1 : $(SourceDir)/Sparc.burg.in
|
2003-10-29 20:07:35 +00:00
|
|
|
$(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
|
2003-09-06 14:50:22 +00:00
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
Sparc.burm : Sparc.burg.in1
|
2003-10-29 20:07:35 +00:00
|
|
|
$(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
|
2003-09-06 14:50:22 +00:00
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
Sparc.burm.cpp: Sparc.burm
|
2003-11-07 17:26:27 +00:00
|
|
|
@echo "Burging `basename $<`"
|
2002-07-25 06:08:32 +00:00
|
|
|
$(RunBurg) $< -o $@
|
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
$(BUILD_OBJ_DIR)/Debug/Sparc.burm.lo: Sparc.burm.cpp
|
2002-07-25 06:08:32 +00:00
|
|
|
$(CompileG) $< -o $@
|
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
$(BUILD_OBJ_DIR)/Release/Sparc.burm.lo: Sparc.burm.cpp
|
2002-09-23 13:12:28 +00:00
|
|
|
$(CompileO) $< -o $@
|
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
$(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Sparc.burm.cpp
|
2002-09-23 13:12:28 +00:00
|
|
|
$(CompileP) $< -o $@
|
|
|
|
|
2003-06-11 13:49:11 +00:00
|
|
|
$(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
|
2002-05-21 15:58:24 +00:00
|
|
|
touch $@
|
|
|
|
|
2003-07-30 05:49:17 +00:00
|
|
|
TARGET_NAME := SparcV9
|
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
|
2003-09-06 14:50:22 +00:00
|
|
|
|
2003-11-13 00:05:09 +00:00
|
|
|
# Make sure that tblgen is run, first thing.
|
|
|
|
$(SourceDepend): $(TARGET_NAME)CodeEmitter.inc
|
|
|
|
|
2003-09-10 14:10:44 +00:00
|
|
|
$(TARGET_NAME)CodeEmitter.cpp:: $(TARGET_NAME)CodeEmitter.inc
|
2003-07-30 05:49:17 +00:00
|
|
|
|
2003-11-07 00:38:09 +00:00
|
|
|
$(TARGET_NAME)CodeEmitter.inc:: $(SourceDir)/$(TARGET_NAME).td $(TABLEGEN_FILES) $(TBLGEN)
|
2003-11-07 17:26:27 +00:00
|
|
|
@echo "Tblgen'ing `basename $<`"
|
2003-09-10 14:10:44 +00:00
|
|
|
$(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
|
2003-07-30 05:49:17 +00:00
|
|
|
|
2003-05-29 03:32:49 +00:00
|
|
|
clean::
|
2003-10-29 20:07:35 +00:00
|
|
|
$(RM) -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp
|
2003-09-09 20:57:03 +00:00
|
|
|
|