22 lines
313 B
Makefile
22 lines
313 B
Makefile
CC = /usr/bin/clang
|
|
CFLAGS = -g -Wall
|
|
|
|
TARGET = server
|
|
|
|
.PATH: ${.CURDIR}/src
|
|
.OBJPATH: ${.CURDIR}/obj
|
|
|
|
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
|
|
|
|
clean:
|
|
$(RM) $(TARGET)
|