2024-05-23 20:07:04 +07:00
|
|
|
CC = /usr/bin/clang
|
|
|
|
CFLAGS = -g -Wall
|
2024-05-15 16:18:18 +07:00
|
|
|
|
2024-05-23 20:07:04 +07:00
|
|
|
TARGET = server
|
|
|
|
|
2024-06-05 15:41:02 +07:00
|
|
|
.PATH: ${.CURDIR}/src
|
|
|
|
.OBJPATH: ${.CURDIR}/obj
|
2024-05-23 20:07:04 +07:00
|
|
|
|
2024-06-05 15:41:02 +07:00
|
|
|
all: server
|
|
|
|
|
|
|
|
server: server.o file.o
|
|
|
|
$(CC) $(CFLAGS) -o server server.o file.o
|
|
|
|
|
|
|
|
server.o: server.c server.h
|
|
|
|
$(CC) $(CFLAGS) -c server.c
|
|
|
|
|
|
|
|
file.o: file.c file.h
|
|
|
|
$(CC) $(CFLAGS) -c
|
2024-05-23 20:07:04 +07:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(TARGET)
|