1 ##===- projects/sample/Makefile ----------------------------*- Makefile -*-===##
3 # This is a sample Makefile for a project that uses LLVM.
5 ##===----------------------------------------------------------------------===##
8 # Indicates our relative path to the top of the project's root directory.
13 # Directories that needs to be built.
17 TESTS = fibonacci hello prime
23 stkrc -e -o - $< | opt -stats -q -f -o $*.bc \
24 -aa-eval -adce -branch-combine -cee -constmerge -constprop -dce -die -ds-aa \
25 -ds-opt -gcse -globaldce -indvars -inline -instcombine \
26 -ipconstprop -licm -loopsimplify -mem2reg -pre -sccp -simplifycfg \
30 stkrc -e -f -o $*.bc $<
37 gcc -g -L$(BUILD_OBJ_ROOT)/lib/Debug -lstkr_runtime -o $* $*.s
40 llvm-dis -f -o $*.ll $<
42 %.bc : $(BUILD_OBJ_ROOT)/tools/Debug/stkrc
44 .PRECIOUS: %.bc %.s %.ll %.st
46 # Include the Master Makefile that knows how to build all.
48 include $(LEVEL)/Makefile.common