SlunkCrypt/Makefile

20 lines
351 B
Makefile
Raw Normal View History

2020-10-13 23:36:58 +02:00
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)