]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - Makefile
Code for supporting git ACLs. acl_test is useful.
[repo_shell.git] / Makefile
index dc3b5f843748e741739279838a459b6c8717e6f5..f6259972cb5a2b6d7ccc3bad5d5abfdc9c91ad94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PROGRAM := repo_shell
+MAIN := repo_shell
 # Git derives its version "prefix" from tags
 
 # Add TMI's mkversion to render files xxx.in -> xxx, updating __appVersion__
@@ -11,7 +11,17 @@ INFILES := $(shell ls *.in 2>/dev/null)
 INFILES := $(INFILES:%.in=%)
 #$(warning INFILES $(INFILES))
 
-repo_shell: repo_shell.c inih/ini.c version.c
+PROGRAMS = $(MAIN) mystrtok_test acl_test
+
+all: $(MAIN)
+
+repo_shell: repo_shell.c inih/ini.c mystrtok.c stra.c utility.c version.c
+       $(CC) -I inih $^ -o $@
+
+mystrtok_test: mystrtok_test.c mystrtok.c utility.c
+       $(CC) -g $^ -o $@
+
+acl_test: acl_test.c git_acl.c inih/ini.c mystrtok.c stra.c utility.c
        $(CC) -I inih $^ -o $@
 
 $(INFILES):%: %.in
@@ -19,6 +29,6 @@ $(INFILES):%: %.in
        @diff -q $@-tmp $@ >/dev/null 2>&1 && rm -f $@-tmp || mv $@-tmp $@
 
 clean:
-       @rm -rf $(PROGRAM) $(INFILES)
+       @rm -rf $(PROGRAMS) $(INFILES)
 
 .PHONY: all clean $(INFILES)