summaryrefslogtreecommitdiff
path: root/emux64/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emux64/Makefile')
-rw-r--r--emux64/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/emux64/Makefile b/emux64/Makefile
new file mode 100644
index 0000000..8455235
--- /dev/null
+++ b/emux64/Makefile
@@ -0,0 +1,16 @@
+CC = gcc
+CFLAGS = -pedantic -Isrc/include/
+CFILES = $(shell find src/ -name "*.c")
+OFILES = $(CFILES:.c=.o)
+
+.PHONY: all
+all: $(OFILES)
+ mkdir -p bin/
+ $(CC) $^ $(CFLAGS) -o bin/emux
+
+%.c: %.o
+ $(CC) -c $< $(CFLAGS)
+
+.PHONY: clean
+clean:
+ rm $(OFILES)