mirror of https://github.com/bol-van/zapret/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
390 B
15 lines
390 B
CC ?= cc
|
|
OPTIMIZE ?= -Os
|
|
MINSIZE ?= -flto=auto -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables
|
|
CFLAGS += -std=gnu99 -s $(OPTIMIZE) $(MINSIZE) -Wno-address-of-packed-member
|
|
LDFLAGS += -Wl,--gc-sections
|
|
LIBS = -lz
|
|
SRC_FILES = *.c crypto/*.c
|
|
|
|
all: dvtws
|
|
|
|
dvtws: $(SRC_FILES)
|
|
$(CC) $(CFLAGS) -o dvtws $(SRC_FILES) $(LIBS) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f dvtws
|
|
|