Added simple Makefile.

This commit is contained in:
LoRd_MuldeR 2020-10-13 23:36:58 +02:00
parent 77c97d0173
commit dc9fe30673
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

19
Makefile Normal file
View File

@ -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)