Commits

Martinho Fernandes committed 30b3e36

Generic Makefile added

  • Participants

Comments (0)

Files changed (2)

+syntax: regexp
+^\.c?project$
+
+CPPFLAGS=-lm -lcrypt -O2 -pipe -DONLINE_JUDGE
+
+% : %.o
+
+SRC_FILES=$(wildcard *.cpp)
+ALL_TARGETS=$(patsubst %.cpp,%,$(SRC_FILES))
+
+all : $(ALL_TARGETS)
+
+clean :
+	$(RM) *.o *~
+  
+clobber : clean
+	$(RM) $(ALL_TARGETS)