[llvm-commits] CVS: llvm/lib/Target/Sparc/Makefile

John Criswell criswell at cs.uiuc.edu
Sat Sep 6 09:51:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

Makefile updated: 1.29 -> 1.30

---
Log message:

Checkin of autoconf-style object root.
Adjusted Makefile to work with new autoconf-style object root.
Specifically, use the new -I option of tblgen to find include files.



---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/Makefile
diff -u llvm/lib/Target/Sparc/Makefile:1.29 llvm/lib/Target/Sparc/Makefile:1.30
--- llvm/lib/Target/Sparc/Makefile:1.29	Thu Aug 21 15:37:17 2003
+++ llvm/lib/Target/Sparc/Makefile	Sat Sep  6 09:50:07 2003
@@ -11,6 +11,12 @@
   DEBUG_FLAG = -D_DEBUG
 endif
 
+Debug/Sparc.burg.in1 : $(SourceDir)/Sparc.burg.in Debug/.dir
+	$(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@
+
+Debug/Sparc.burm : Debug/Sparc.burg.in1
+	$(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@
+
 Debug/Sparc.burm.cpp: Debug/Sparc.burm Debug/.dir
 	$(RunBurg) $< -o $@
 
@@ -23,33 +29,17 @@
 $(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Debug/Sparc.burm.cpp
 	$(CompileP) $< -o $@
 
-#$(BUILD_OBJ_DIR)/Debug/Sparc.burm.o: Debug/Sparc.burm.cpp
-#	$(CompileG) $< -o $@
-
-#$(BUILD_OBJ_DIR)/Release/Sparc.burm.o: Debug/Sparc.burm.cpp
-#	$(CompileO) $< -o $@
-
-#$(BUILD_OBJ_DIR)/Profile/Sparc.burm.o: Debug/Sparc.burm.cpp
-#	$(CompileP) $< -o $@
-
-Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
-	$(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@
-
-Debug/Sparc.burm : Debug/Sparc.burg.in1
-	$(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@
-
 $(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
 	touch $@
 
-SparcV9CodeEmitter.cpp: SparcV9CodeEmitter.inc
-
-
 TARGET_NAME := SparcV9
 
-TABLEGEN_FILES := $(wildcard *.td)
+TABLEGEN_FILES := $(wildcard $(SourceDir)/*.td)
+
+$(SourceDir)/$(TARGET_NAME)CodeEmitter.cpp:: $(TARGET_NAME)CodeEmitter.inc
 
 $(TARGET_NAME)CodeEmitter.inc:: $(TABLEGEN_FILES) $(TBLGEN)
-	$(TBLGEN) $(TARGET_NAME).td -gen-emitter -o $@
+	$(TBLGEN) -I $(SourceDir) $(SourceDir)/$(TARGET_NAME).td -gen-emitter -o $@
 
 clean::
 	${RM} -f $(TARGET_NAME)CodeEmitter.inc





More information about the llvm-commits mailing list