-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 734 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (23 loc) · 734 Bytes
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
TEST_DIR=./test
NET_DIR=./net
UTIL_DIR=./util
BUILD_DIR=./build
ARG= -std=c++11 -Wall
OBJ= Logger.o Fdevent.o Ionet.o helper.o Epoller.o EventLoop.o
CC=g++
all:$(OBJ)
$(CC) $(ARG) $(TEST_DIR)/Ionet_test.cc $(BUILD_DIR)/*.o -o $(TEST_DIR)/Ionet_test
helper.o:
$(CC) $(ARG) -c $(UTIL_DIR)/helper.cc -o $(BUILD_DIR)/helper.o
Logger.o:
$(CC) $(ARG) -c $(UTIL_DIR)/Logger.cc -o $(BUILD_DIR)/Logger.o
Fdevent.o:
$(CC) $(ARG) -c $(NET_DIR)/Fdevent.cc -o $(BUILD_DIR)/Fdevent.o
Epoller.o:
$(CC) $(ARG) -c $(NET_DIR)/Epoller.cc -o $(BUILD_DIR)/Epoller.o
EventLoop.o:
$(CC) $(ARG) -c $(NET_DIR)/EventLoop.cc -o $(BUILD_DIR)/EventLoop.o
Ionet.o:
$(CC) $(ARG) -c $(NET_DIR)/Ionet.cc -o $(BUILD_DIR)/Ionet.o
clean:
rm ./build/*.o;