summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <=>2016-02-04 23:02:20 +0000
committerFreeArtMan <=>2016-02-04 23:02:20 +0000
commitebe6923b17de88d37d97846be2567fb75f53292c (patch)
treeca14f19a6634546d93a02775b407e8197c805760 /Makefile
downloadihe-ebe6923b17de88d37d97846be2567fb75f53292c.tar.gz
ihe-ebe6923b17de88d37d97846be2567fb75f53292c.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7a35c26
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+PROJECT=ihe
+CC=gcc
+CFLAGS=
+SOURCES=buf.c cmd.c core.c
+OBJECTS=$(SOURCES:.c=.o)
+
+all: clean $(OBJECTS) $(PROJECT)
+
+$(PROJECT):
+ $(CC) $(CFLAGS) $(OBJECTS) $(PROJECT).c -o $(PROJECT)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+clean:
+ rm -f $(PROJECT)
+ rm -f *.o
+
+leak:
+ valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./ihe
+ #valgrind --track-origins=yes --log-file=log.txt ./dm -f test/test.bin -m test/one_byte.dm
+