-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 1013 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
CC=g++
WX_COMPILE_FLAGS=`wx-config --cxxflags`
WX_LINKING_FLAGS=`wx-config --libs`
FE=frontend
BE=backend
BLD=build
all: CalculatorApp
CalculatorApp: $(BLD)/CalculatorApp.o $(BLD)/CalculatorMain.o $(BLD)/RequestHandler.o $(BLD)/FNum.o $(BLD)/MemManager.o
$(CC) -o $(BLD)/$@ $(BLD)/CalculatorApp.o $(BLD)/CalculatorMain.o $(BLD)/RequestHandler.o $(BLD)/FNum.o $(BLD)/MemManager.o $(WX_LINKING_FLAGS)
$(BLD)/CalculatorApp.o: $(FE)/CalculatorApp.cpp $(FE)/CalculatorApp.h $(FE)/CalculatorMain.h | $(BLD)
$(CC) -o $@ -c $(FE)/CalculatorApp.cpp $(WX_COMPILE_FLAGS)
$(BLD)/CalculatorMain.o: $(FE)/CalculatorMain.cpp $(FE)/CalculatorMain.h | $(BLD)
$(CC) -o $@ -c $(FE)/CalculatorMain.cpp $(WX_COMPILE_FLAGS)
$(BLD)/RequestHandler.o: $(BE)/RequestHandler.cpp | $(BLD)
$(CC) -o $@ -c $(BE)/RequestHandler.cpp $(WX_COMPILE_FLAGS)
$(BLD)/FNum.o: $(BE)/FNum.cpp | $(BLD)
$(CC) -o $@ -c $(BE)/FNum.cpp
$(BLD)/MemManager.o: $(BE)/MemManager.cpp | $(BLD)
$(CC) -o $@ -c $(BE)/MemManager.cpp
$(BLD):
mkdir $(BLD)