-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (20 loc) · 1001 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile of xsvt
.PHONY: all xsvt_checker xsvt_onehot xsvt_transfer
CC := gcc -std=gnu99 -D_GNU_SOURCE -D__USE_STRING_INLINES
# for debug version
CFLAGSd = -I. -I.. -Wall -static-libgcc -m64 -O0 -DDEBUG -gdwarf-3 -march=x86-64
# for release version
CFLAGS0 = -I. -I.. -static -static-libgcc -m64 -Ofast -minline-stringops-dynamically -DNDEBUG -g0 -march=native
all: xsvt_checker xsvt_onehot xsvt_transfer
strip -s xsvt.*.x64.*
xsvt_checker:
$(CC) $(CFLAGSd) checker/*.c -static -o xsvt.checker.gcc.x64.d
$(CC) $(CFLAGS0) checker/*.c -static -o xsvt.checker.gcc.x64.0
xsvt_onehot:
$(CC) $(CFLAGSd) checker/checker.c onehot/*.c -static -o xsvt.onehot.gcc.x64.d
$(CC) $(CFLAGS0) checker/checker.c onehot/*.c -static -o xsvt.onehot.gcc.x64.0
xsvt_transfer:
$(CC) $(CFLAGSd) checker/checker.c transfer/*.c -static -o xsvt.transfer.gcc.x64.d
$(CC) $(CFLAGS0) checker/checker.c transfer/*.c -static -o xsvt.transfer.gcc.x64.0
clean:
rm -rf xsvt.*.x64.*