-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.win
61 lines (44 loc) · 2.4 KB
/
makefile.win
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
56
57
58
59
60
# Project: sortVerify
# Makefile created by Red Panda C++ 2.7
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES = Project1_private.res
OBJ = quickSortClass.o runtimeCal.o mergeSortClass.o sortClass.o testData.o bubbleSortClass.o dataGenerator.o heapSortClass.o main.o test.o $(RES)
LINKOBJ = quickSortClass.o runtimeCal.o mergeSortClass.o sortClass.o testData.o bubbleSortClass.o dataGenerator.o heapSortClass.o main.o test.o $(RES)
CLEANOBJ = quickSortClass.o runtimeCal.o mergeSortClass.o sortClass.o testData.o bubbleSortClass.o dataGenerator.o heapSortClass.o main.o test.o Project1_private.res output\SortVerify.exe
LIBS = -s -static
INCS =
CXXINCS =
BIN = output/SortVerify.exe
CXXFLAGS = $(CXXINCS) -O2 -pipe
CFLAGS = $(INCS) -O2 -pipe
RM = del /q /f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
-$(RM) $(CLEANOBJ) > NUL 2>&1
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
quickSortClass.o: quickSortClass.cpp runtimeCal.h testData.h sortClass.h quickSortClass.h dataGenerator.h
$(CPP) -c quickSortClass.cpp -o quickSortClass.o $(CXXFLAGS)
runtimeCal.o: runtimeCal.cpp runtimeCal.h
$(CPP) -c runtimeCal.cpp -o runtimeCal.o $(CXXFLAGS)
mergeSortClass.o: mergeSortClass.cpp mergeSortClass.h
$(CPP) -c mergeSortClass.cpp -o mergeSortClass.o $(CXXFLAGS)
sortClass.o: sortClass.cpp runtimeCal.h testData.h sortClass.h dataGenerator.h
$(CPP) -c sortClass.cpp -o sortClass.o $(CXXFLAGS)
testData.o: testData.cpp testData.h
$(CPP) -c testData.cpp -o testData.o $(CXXFLAGS)
bubbleSortClass.o: bubbleSortClass.cpp runtimeCal.h bubbleSortClass.h testData.h sortClass.h dataGenerator.h
$(CPP) -c bubbleSortClass.cpp -o bubbleSortClass.o $(CXXFLAGS)
dataGenerator.o: dataGenerator.cpp testData.h dataGenerator.h
$(CPP) -c dataGenerator.cpp -o dataGenerator.o $(CXXFLAGS)
heapSortClass.o: heapSortClass.cpp heapSortClass.h
$(CPP) -c heapSortClass.cpp -o heapSortClass.o $(CXXFLAGS)
main.o: main.cpp mergeSortClass.h runtimeCal.h test.h heapSortClass.h bubbleSortClass.h testData.h sortClass.h quickSortClass.h dataGenerator.h
$(CPP) -c main.cpp -o main.o $(CXXFLAGS) -finput-charset=UTF-8 -fexec-charset=gbk
test.o: test.cpp test.h
$(CPP) -c test.cpp -o test.o $(CXXFLAGS)
Project1_private.res: Project1_private.rc
$(WINDRES) -i Project1_private.rc --input-format=rc -o Project1_private.res -O coff