Added LLVM copyright notice to Makefiles.
[oota-llvm.git] / lib / Target / SparcV9 / Makefile
1 ##===- lib/Target/Sparc/Makefile ---------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../../..
10 LIBRARYNAME = sparc
11
12 ExtraSource = Sparc.burm.cpp 
13
14 include $(LEVEL)/Makefile.common
15
16 ifdef ENABLE_OPTIMIZED
17   DEBUG_FLAG = 
18 else
19   DEBUG_FLAG = -D_DEBUG
20 endif
21
22 Sparc.burg.in1 : Sparc.burg.in
23         $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@
24
25 Sparc.burm : Sparc.burg.in1
26         $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@
27
28 Sparc.burm.cpp: Sparc.burm
29         @echo "Burging $<"
30         $(RunBurg) $< -o $@
31
32 $(BUILD_OBJ_DIR)/Debug/Sparc.burm.lo: Sparc.burm.cpp
33         $(CompileG) $< -o $@
34
35 $(BUILD_OBJ_DIR)/Release/Sparc.burm.lo: Sparc.burm.cpp
36         $(CompileO) $< -o $@
37
38 $(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Sparc.burm.cpp
39         $(CompileP) $< -o $@
40
41 $(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
42         touch $@
43
44 TARGET_NAME := SparcV9
45
46 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
47
48 $(TARGET_NAME)CodeEmitter.cpp:: $(TARGET_NAME)CodeEmitter.inc
49
50 $(TARGET_NAME)CodeEmitter.inc:: $(TARGET_NAME).td $(TABLEGEN_FILES) $(TBLGEN)
51         @echo "Tblgen'ing $<"
52         $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
53
54 clean::
55         ${RM} -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp
56