- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
Latest commit
16 lines (11 loc) · 404 Bytes
/
Copy pathmakefile
File metadata and controls
16 lines (11 loc) · 404 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC=gcc
BUILD_DIR=./build
SRC_DIR=./src
CFLAGS=-g -Wall -MMD
all: $(BUILD_DIR)/server $(BUILD_DIR)/client
$(BUILD_DIR)/server: $(SRC_DIR)/server.o
$(CC)$(CFLAGS) -o $(BUILD_DIR)/server $(SRC_DIR)/server.o -lpthread
$(BUILD_DIR)/client: $(SRC_DIR)/client.o
$(CC)$(CFLAGS) -o $(BUILD_DIR)/client $(SRC_DIR)/client.o
$(SRC_DIR)/server.o: $(SRC_DIR)/server.h
$(SRC_DIR)/client.o: $(SRC_DIR)/client.h