X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0d169ada2ba81210ab1191a5f2212662e90db77e..25105d7ecaba474d4b7c364ebb586aac3dfc5abb:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 1470c0a..243f590 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ INSTALL_BIN = /var/www/htdocs/cgit.cgi INSTALL_CSS = /var/www/htdocs/cgit.css EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto -OBJECTS = cgit.o config.o html.o +OBJECTS = cgit.o config.o html.o cache.o + +CFLAGS += -Wall all: cgit @@ -15,10 +17,6 @@ clean: rm -f cgit *.o cgit: $(OBJECTS) - $(CC) -o cgit $(OBJECTS) $(EXTLIBS) - -cgit.o: cgit.h git.h config.o html.o - -config.o: cgit.h git.h html.c + $(CC) $(CFLAGS) -o cgit $(OBJECTS) $(EXTLIBS) -html.o: cgit.h git.h html.c +$(OBJECTS): cgit.h git.h