-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (50 loc) · 2.17 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
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
CC = g++
CFLAGS = -std=c++17 -Wall -Wextra -pedantic
CFLAGS += -Icore -Ientity -Irepository -Icontroller -Iutils
OBJ = core/Request.o core/Response.o core/Json.o core/HttpException.o
OBJ += entity/Entity.o entity/User.o entity/Account.o entity/Dutch.o
OBJ += repository/Repository.o repository/FileRepository.o
OBJ += controller/Controller.o controller/UserController.o controller/AccountController.o
OBJ += controller/NormalDutchController.o controller/RaceDutchController.o
OBJ += utils/Utils.o
OBJ += main.o
TARGET = a.out
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(CFLAGS) $^ -o $@
core/Request.o: core/Request.cpp core/Request.h
$(CC) $(CFLAGS) -c $< -o $@
core/Response.o: core/Response.cpp core/Response.h
$(CC) $(CFLAGS) -c $< -o $@
core/Json.o: core/Json.cpp core/Json.h
$(CC) $(CFLAGS) -c $< -o $@
core/HttpException.o: core/HttpException.cpp core/HttpException.h
$(CC) $(CFLAGS) -c $< -o $@
entity/Entity.o: entity/Entity.cpp entity/Entity.h
$(CC) $(CFLAGS) -c $< -o $@
entity/User.o: entity/User.cpp entity/User.h
$(CC) $(CFLAGS) -c $< -o $@
entity/Account.o: entity/Account.cpp entity/Account.h
$(CC) $(CFLAGS) -c $< -o $@
entity/Dutch.o: entity/Dutch.cpp entity/Dutch.h
$(CC) $(CFLAGS) -c $< -o $@
repository/Repository.o: repository/Repository.cpp repository/Repository.h
$(CC) $(CFLAGS) -c $< -o $@
repository/FileRepository.o: repository/FileRepository.cpp repository/FileRepository.h
$(CC) $(CFLAGS) -c $< -o $@
controller/Controller.o: controller/Controller.cpp controller/Controller.h
$(CC) $(CFLAGS) -c $< -o $@
controller/UserController.o: controller/UserController.cpp controller/UserController.h
$(CC) $(CFLAGS) -c $< -o $@
controller/AccountController.o: controller/AccountController.cpp controller/AccountController.h
$(CC) $(CFLAGS) -c $< -o $@
controller/NormalDutchController.o: controller/NormalDutchController.cpp controller/NormalDutchController.h
$(CC) $(CFLAGS) -c $< -o $@
controller/RaceDutchController.o: controller/RaceDutchController.cpp controller/RaceDutchController.h
$(CC) $(CFLAGS) -c $< -o $@
utils/Utils.o: utils/Utils.cpp utils/Utils.h
$(CC) $(CFLAGS) -c $< -o $@
main.o: main.cpp
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(TARGET) $(OBJ)