19 lines
305 B
Makefile
19 lines
305 B
Makefile
TARGET=http
|
|
CC=gcc
|
|
|
|
OBJ = main.o tcp.o http.o file.o
|
|
|
|
$(TARGET): $(OBJ)
|
|
mkdir -p ../build
|
|
$(CC) -Wall -g -o $(TARGET) $(OBJ) -g
|
|
mv $(TARGET) ../build/
|
|
|
|
main.o: include/tcp.h
|
|
tcp.o: include/tcp.h include/http.h
|
|
http.o: include/http.h
|
|
file.o: include/file.h
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ../build $(OBJ)
|