summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorolivier gayot <ogayot@free.fr>2012-12-12 22:22:25 +0000
committerolivier gayot <ogayot@free.fr>2012-12-12 22:22:25 +0000
commita68838f0f6873979e3dcb2c8c8b8ef10017fefc3 (patch)
tree18622ce60a9227002134f6456173f11faae73170 /Makefile
le_compte_est_bon: implementation of the solver
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e63a53
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CC = gcc
+CFLAGS = -Wall -W -Wextra -std=c99 -g
+NAME = solver
+
+$(NAME): .solver.o .main.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+.solver.o: solver.c solver.h
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+.main.o: main.c solver.h
+ $(CC) -o $@ -c $< $(CFLAGS)
+