Added simple Makefile.
This commit is contained in:
parent
77c97d0173
commit
dc9fe30673
19
Makefile
Normal file
19
Makefile
Normal 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)
|
Loading…
Reference in New Issue
Block a user