Created
January 27, 2011 03:50
-
-
Save jumph4x/798034 to your computer and use it in GitHub Desktop.
CSE4100/hw0: Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OFILES = main.o# type.o | |
LEX = flex | |
BISON = bison | |
CPATH = | |
CC = $(CPATH)llvm-g++ | |
LD = $(CPATH)llvm-g++ | |
CXXFLAGS = `$(CPATH)llvm-config --cppflags` | |
LDFLAGS = `$(CPATH)llvm-config --ldflags --libs core jit native` | |
all: typetest | |
typetest: $(OFILES) | |
$(LD) -g $(OFILES) $(LDFLAGS) -o $@ | |
%.o %.d: %.C | |
$(CC) -g -c -x c++ $(CXXFLAGS) $< -MD | |
%.o %.d: %.c | |
$(CC) -g -c -x c++ $(CXXFLAGS) $< -MD | |
clean: | |
rm -rf *.o *~ *.d | |
include $(addsuffix .d ,$(basename $(OFILES))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to view RAW for tabulation preservation (in order to copy+paste).