postnummer-app/backend/Makefile
2023-02-10 17:39:04 +01:00

27 lines
354 B
Makefile

CFLAGS = \
-std=c17 \
-Wall \
-Wextra \
-Wpedantic \
-Wconversion \
CC = gcc
HEADERS = $(wildcard *.h)
all: compile_flags.txt server
server: main.o http.o linux.o
$(CC) $^ -o $@
%.o: %.c $(HEADERS)
$(CC) $< -c -o $@ $(CFLAGS)
clean:
rm -rf *.o server client
compile_flags.txt:
echo -xc $(CFLAGS) | sed 's/\s\+/\n/g' > compile_flags.txt