You've already forked mkey
mirror of
https://github.com/nh-server/mkey.git
synced 2026-04-30 11:25:12 -07:00
66d029d770
Might be more noob friendly than a python script.
19 lines
471 B
Makefile
19 lines
471 B
Makefile
SOURCES = source source/polarssl
|
|
|
|
CFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.c))
|
|
CPPFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.cpp))
|
|
|
|
OBJS = $(CFILES:.c=.o) $(CPPFILES:.cpp=.o)
|
|
|
|
LIBS = -static-libstdc++ -static
|
|
CXXFLAGS = -Isource
|
|
CFLAGS = -std=c11 -Wall -Wextra -Os -posix -Isource -D_GNU_SOURCE
|
|
OUTPUT = mkey
|
|
CC = gcc
|
|
|
|
main: $(OBJS)
|
|
g++ -o $(OUTPUT) $(LIBS) $(OBJS)
|
|
|
|
clean:
|
|
rm -f $(OUTPUT) $(OUTPUT).exe $(OBJS)
|