From dc9fe3067356b01e2cfe9c15ad02dcc2c50acd0c Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Tue, 13 Oct 2020 23:36:58 +0200 Subject: [PATCH] Added simple Makefile. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 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)