-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.windows
More file actions
42 lines (36 loc) · 1.63 KB
/
Copy pathmakefile.windows
File metadata and controls
42 lines (36 loc) · 1.63 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
CXX = g++
CXXFLAGS = -std=c++23 -Wall -Wextra -Wpedantic -O2 \
-static -static-libgcc -static-libstdc++ \
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive
BINS = tracedsa/bins/windows
SRCS_STACK = Stack/Stack.cpp Stack/stack_interactive.cpp
SRCS_STACKLL = Stack/StackAsLinkedList.cpp Stack/StackAsLinkedList_interactive.cpp
SRCS_QUEUE = Queue/Queue.cpp Queue/Queue_interactive.cpp
SRCS_QUEUELL = Queue/QueueAsLinkedList.cpp Queue/QueueAsLinkedList_interactive.cpp
SRCS_CIRCQUEUE = Queue/CircularQueue.cpp Queue/CircularQueue_interactive.cpp
SRCS_LL = LinkedList/LinkedList.cpp LinkedList/LinkedList_interactive.cpp
SRCS_DLL = LinkedList/DoublyLinkedList.cpp LinkedList/DoublyLinkedList_interactive.cpp
SRCS_BST = BST/BST.cpp BST/BST_interactive.cpp
SRCS_HEAP = PriorityQueue/Heap.cpp PriorityQueue/Heap_interactive.cpp
all: dirs stack stackll queue queuell circqueue ll dll bst heap
dirs:
mkdir -p $(BINS)
stack: dirs
$(CXX) $(CXXFLAGS) $(SRCS_STACK) -o $(BINS)/stack.exe
stackll: dirs
$(CXX) $(CXXFLAGS) $(SRCS_STACKLL) -o $(BINS)/stackll.exe
queue: dirs
$(CXX) $(CXXFLAGS) $(SRCS_QUEUE) -o $(BINS)/queue.exe
queuell: dirs
$(CXX) $(CXXFLAGS) $(SRCS_QUEUELL) -o $(BINS)/queuell.exe
circqueue: dirs
$(CXX) $(CXXFLAGS) $(SRCS_CIRCQUEUE) -o $(BINS)/circqueue.exe
ll: dirs
$(CXX) $(CXXFLAGS) $(SRCS_LL) -o $(BINS)/ll.exe
dll: dirs
$(CXX) $(CXXFLAGS) $(SRCS_DLL) -o $(BINS)/dll.exe
bst: dirs
$(CXX) $(CXXFLAGS) $(SRCS_BST) -o $(BINS)/bst.exe
heap: dirs
$(CXX) $(CXXFLAGS) $(SRCS_HEAP) -o $(BINS)/heap.exe
.PHONY: all dirs stack stackll queue queuell circqueue ll dll bst heap