Skip to content

Commit

Permalink
Improved Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtahu committed Apr 26, 2013
1 parent 85370ac commit aa8cb43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=distcc g++
#CFLAGS= -O2 -pipe -march=native
CFLAGS=-ggdb
CXXFLAGS=$(CFLAGS)
SRC= $(wildcard *.cpp)
OBJ= $(SRC:.cpp=.o) LangS.tab.o LangS.yy.o

LangS: LangS.tab.o LangS.yy.o LangS.o

LangS: $(OBJ)
$(CXX) -o $@ $^

LangS.tab.cpp LangS.tab.hpp: LangS.ypp
Expand All @@ -13,3 +17,6 @@ LangS.yy.cpp: LangS.l

clean:
rm -f *.o *.tab.cpp *.yy.cpp *.tab.hpp

.PHONY: build zip test clean all

0 comments on commit aa8cb43

Please sign in to comment.