OSDN Git Service

Added simple Makefile.
authorLoRd_MuldeR <mulder2@gmx.de>
Tue, 13 Oct 2020 21:36:58 +0000 (23:36 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Sat, 20 Mar 2021 20:18:10 +0000 (21:18 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c48b33b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFLAGS = -O3 -static -DNDEBUG -IlibMCrypt/include
+
+ifeq ($(OS),Windows_NT)
+       SUFFIX := exe
+       CFLAGS += -municode
+else
+       SUFFIX := out
+endif
+
+.PHONY: all clean
+
+all:
+       @mkdir -p bin
+       $(CC) $(CFLAGS) -o bin/mcrypt.$(SUFFIX) $(wildcard frontend/src/*.c) $(wildcard libMCrypt/src/*.c)
+       strip bin/mcrypt.$(SUFFIX)
+
+clean:
+       @mkdir -p bin
+       rm -f bin/*.$(SUFFIX)