backend: use tabs in makefile

This commit is contained in:
Simon 2023-02-09 13:52:25 +01:00
parent d3859091a2
commit eef103fd9a

View File

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