-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
12 lines (8 loc) · 862 Bytes
/
Makefile
File metadata and controls
12 lines (8 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
CC = clang
CFLAGS = -O3 -flto -Werror -Walloca -Wextra -Wcast-qual -Wconversion -Wformat=2 -Wformat-security -Wnull-dereference -Wstack-protector -Wvla -Warray-bounds -Warray-bounds-pointer-arithmetic -Wassign-enum -Wbad-function-cast -Wconditional-uninitialized -Wconversion -Wfloat-equal -Wformat-type-confusion -Widiomatic-parentheses -Wimplicit-fallthrough -Wloop-analysis -Wpointer-arith -Wshift-sign-overflow -Wshorten-64-to-32 -Wswitch-enum -Wtautological-constant-in-range-compare -Wunreachable-code-aggressive -Wthread-safety -Wthread-safety-beta -Wcomma -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fsanitize=safe-stack -fPIE -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code
LDFLAGS = -lzstd -lpthread
omzstd: omzstd.c
$(CC) $(CFLAGS) $(LDFLAGS) -o omzstd omzstd.c
.PHONY: clean
clean:
rm -f $(obj) omzstd