Skip to content

Instantly share code, notes, and snippets.

@jumph4x
Created January 27, 2011 03:50
Show Gist options
  • Save jumph4x/798034 to your computer and use it in GitHub Desktop.
Save jumph4x/798034 to your computer and use it in GitHub Desktop.
CSE4100/hw0: Makefile
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)))
@jumph4x
Copy link
Author

jumph4x commented Jan 27, 2011

Make sure to view RAW for tabulation preservation (in order to copy+paste).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment