+## -*-Makefile-*-
+##------------------------------------------------------------------------
+## Common rules for generating, linking, and compiling via LLVM.
+##------------------------------------------------------------------------
+
.PHONY: clean default
## Special targets to build a program from multiple source files
LLCFLAGS =
LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
-LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall
+LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall
LLCLIB = $(LEVEL)/test/runtime.o
LIBS = $(LLCLIB) $(LOCAL_LIBS)
$(LLC) -f -trace $(LLCFLAGS) $<
%.o: %.c
- $(LCC) $(LCFLAGS) -c $<
+ $(LCC) $(LCFLAGS) -S -o $*.ll $<
+ $(LAS) -o $@ $*.ll
%.bc: %.ll
$(LAS) -f $<
+## -*-Makefile-*-
+##------------------------------------------------------------------------
+## Common rules for generating, linking, and compiling via LLVM.
+##------------------------------------------------------------------------
+
.PHONY: clean default
## Special targets to build a program from multiple source files
LLCFLAGS =
LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
-LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall
+LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall
LLCLIB = $(LEVEL)/test/runtime.o
LIBS = $(LLCLIB) $(LOCAL_LIBS)
$(LLC) -f -trace $(LLCFLAGS) $<
%.o: %.c
- $(LCC) $(LCFLAGS) -c $<
+ $(LCC) $(LCFLAGS) -S -o $*.ll $<
+ $(LAS) -o $@ $*.ll
%.bc: %.ll
$(LAS) -f $<