aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNPScript <nathan@reinerweb.ch>2021-12-20 18:19:17 +0100
committerNPScript <nathan@reinerweb.ch>2021-12-20 18:19:17 +0100
commit25b3356b926e71d25fddef998021e66d7c1a7557 (patch)
tree7e5dc325907a4802d74233998db6cde6605d4b0a /Makefile
init 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..162a76c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+SRC=$(wildcard *.c)
+OBJ=${SRC:.c=.o}
+LDFLAGS=-lmagic
+
+all: luis
+
+options:
+ @echo "CC = ${CC}"
+ @echo "SRC = ${SRC}"
+ @echo "OBJ = ${OBJ}"
+ @echo "LDFLAGS = ${LDFLAGS}"
+
+.c.o:
+ ${CC} -c $<
+
+luis: ${OBJ}
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
+
+clean:
+ rm ${OBJ} test
+