revamped makefile

This commit is contained in:
Win 2024-05-23 20:07:04 +07:00
parent 7c61ca2038
commit 43b4da02dd
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,12 @@
CC = /usr/bin/clang CC = /usr/bin/clang
CFLAGS = -g -Wall
all: webserver.c TARGET = server
$(CC) webserver.c -o webserver
all: $(TARGET)
$(TARGET): src/$(TARGET).c
$(CC) $(CFLAGS) -o $(TARGET) src/$(TARGET).c
clean:
$(RM) $(TARGET)

BIN
server

Binary file not shown.