add Makefile
authorDralagen <dralagen@dralagen.fr>
Thu, 7 Nov 2013 13:42:50 +0000 (14:42 +0100)
committerDralagen <dralagen@dralagen.fr>
Thu, 7 Nov 2013 13:42:50 +0000 (14:42 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..2b9df47
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC=javac
+CFLAGS= -g -d bin/ -s src/
+EXEC=intCommun
+SRC= $(wildcard src/*.java)
+OBJ=$(CLASSES:.java=.class)
+
+all: $(EXEC)
+
+intCommun: $(OBJ)
+       $(CC) $(CFLAGS) $(SRC)
+
+.PHONY: clean mrproper
+
+clean:
+       $(RM) bin/*.class
+
+mrproper: clean
+       $(RM) bin/*.class
+