Commit 79fb6624 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

Makefile: added clean targets, rewrote using implicit rules

parent 456b4d3a
......@@ -26,8 +26,18 @@ LDFLAGS+=${AXIS_LIBCAP} ${AXIS_LIBCAP_DEP} ${AXIS_LIBCAP} -L${AXIS_PATH}/lib -L$
CFLAGS+=-O3 -g -Wall
LDLIBS+=-lpthread
http_server: http_server.o camera.o Makefile
${CC} ${CPPFLAGS} ${CFLAGS} http_server.o camera.o ${LDFLAGS} -lpthread -o $@
all: http_server
http_server: http_server.o camera.o
http_server.o: http_server.c camera.h
camera.o: camera.c camera.h fakecapture.h
clean:
-rm http_server.o camera.o
distclean: clean
-rm http_server
.PHONY: all clean
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment