-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (41 loc) · 1.15 KB
/
Makefile
File metadata and controls
55 lines (41 loc) · 1.15 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
COMPILER = g++ -std=gnu++0x
SRC = crazynew.cpp
# SRC = crazy.cpp
# SORT = | sort -n
OPTIONS = -D"UPPERLIMIT = 1000000000" \
-DADDITION \
-DDISCARDDUPES \
-DCONCATENATION \
-DEXPONENTS \
-DSUBTRACTION \
-DDIVISION \
-DSQUAREROOT \
-DUNITARYNEGATION \
# -DMULTIPLICATION \
# -DFACTORIAL \
# -DREVERSEDIVISION \
# -DDEBUG
# -DSHOWQUEUESTEPS \
# -DSHOWNEGATIVES \
all: crazy crazy.exe
test: out out.exe new.out
new.out: $(SRC) crazy new.py
make clean
make crazy
python new.py|bash|tee new.out
crazy.exe: $(SRC)
i586-mingw32msvc-g++ -g $(OPTIONS) -o crazy.exe $(SRC)
crazy: $(SRC)
$(COMPILER) -g $(OPTIONS) -o crazy $(SRC)
crazy.increasing.out: crazy
./crazy 1 2 3 4 5 6 7 8 9 $(SORT) > crazy.increasing.out
crazy.decreasing.out: crazy
./crazy 9 8 7 6 5 4 3 2 1 $(SORT) > crazy.decreasing.out
crazy.exe.increasing.out: crazy.exe
wine ./crazy.exe 1 2 3 4 5 6 7 8 9 > crazy.exe.increasing.out
crazy.exe.decreasing.out: crazy.exe
wine ./crazy.exe 9 8 7 6 5 4 3 2 1 > crazy.exe.decreasing.out
out: crazy.increasing.out crazy.decreasing.out
out.exe: crazy.exe.increasing.out crazy.exe.decreasing.out
clean:
rm -rf crazy crazy.exe crazy.*.out *~ new.out