]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Add vector utility functions
[ps-cgit] / Makefile
index dda743dd9b1c4132067e272885888db0767f4c36..31d88ef4defbbde46b6928cda7f7760e87a72803 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ endif
 # Define a pattern rule for automatic dependency building
 #
 %.d: %.c
-       $(QUIET_MM)$(CC) $(CFLAGS) -MM $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
+       $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
 
 #
 # Define a pattern rule for silent object building
@@ -103,6 +103,7 @@ OBJECTS += ui-stats.o
 OBJECTS += ui-summary.o
 OBJECTS += ui-tag.o
 OBJECTS += ui-tree.o
+OBJECTS += vector.o
 
 ifdef NEEDS_LIBICONV
        EXTLIBS += -liconv
@@ -126,6 +127,8 @@ CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
 CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
 CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
 
+GIT_OPTIONS = prefix=/usr
+
 ifdef NO_ICONV
        CFLAGS += -DNO_ICONV
 endif