-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (31 loc) · 1.11 KB
/
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
current_dir = $(shell pwd)
main: main.o combo.o ssfctp.o util.o generator.o
gcc main.o combo.o ssfctp.o util.o generator.o -o main
combo.o: combo.c combo.h
gcc -c combo.c
generator.o: generator.c generator.h
gcc -c generator.c
util.o: util.c util.h
gcc -c util.c
ssfctp.o: ssfctp.c ssfctp.h
gcc -c ssfctp.c
clean:
rm *.o
run:
./main.exe
Klose:
(cd "$(shell pwd)/ssfctp_Klose" && gcc SSfctp_main.c ssfctp.c rtime.c readini.c -o main.exe)
runKlose:
(cd "$(shell pwd)/ssfctp_Klose" && ./main.exe "$(shell pwd)/output_Klose/outfile0.fctp")
NINE := 9
NINETYNINE := 99
FOURSEVENTYNINE := 479
NUMBERS10 := $(shell seq 0 ${NINE})
NUMBERS100 := $(shell seq 0 ${NINETYNINE})
NUMBERS480 := $(shell seq 0 ${FOURSEVENTYNINE})
runKlose10:
$(foreach var,$(NUMBERS10),(cd "$(shell pwd)/ssfctp_Klose" && ./main.exe "$(shell pwd)/output_Klose/outfile$(var).fctp");)
runKlose100:
$(foreach var,$(NUMBERS100),(cd "$(shell pwd)/ssfctp_Klose" && ./main.exe "$(shell pwd)/output_Klose/outfile$(var).fctp");)
runKlose480:
$(foreach var,$(NUMBERS480),(cd "$(shell pwd)/ssfctp_Klose" && ./main.exe "$(shell pwd)/output_Klose/outfile$(var).fctp");)