Initial commit

This commit is contained in:
Keith Winstein
2010-12-28 18:05:50 -05:00
commit 52f527891c
7 changed files with 160 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
source = parse.cpp parserstate.cpp
objects = parserstate.o
executables = parse
CPP = g++
CPPFLAGS = -g --std=c++0x -pedantic -Werror -Wall -Wextra -Weffc++ -fno-implicit-templates -pipe -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE
LIBS =
all: $(executables)
parse: parse.o $(objects)
$(CPP) $(CPPFLAGS) -o $@ $+ $(LIBS)
%.o: %.cpp
$(CPP) $(CPPFLAGS) -c -o $@ $<
include depend
depend: $(source)
$(CPP) $(INCLUDES) -MM $(source) > depend
.PHONY: clean
clean:
-rm -f $(executables) depend *.o *.rpo