started test client
[reposerve] / client / Makefile
diff --git a/client/Makefile b/client/Makefile
new file mode 100644 (file)
index 0000000..bfe1853
--- /dev/null
@@ -0,0 +1,30 @@
+PREFIX ?= /usr/local
+
+src = $(wildcard src/*.c) $(wildcard ../src/*.c)
+obj = $(src:.c=.o)
+dep = $(src:.c=.d)
+bin = repo
+
+CFLAGS = -pedantic -Wall -g -Isrc -I../src
+
+$(bin): $(obj)
+       $(CC) -o $@ $(obj) $(LDFLAGS)
+
+-include $(dep)
+
+.PHONY: clean
+clean:
+       rm -f $(obj) $(bin)
+
+.PHONY: cleandep
+cleandep:
+       rm -f $(dep)
+
+.PHONY: install
+install: $(bin)
+       mkdir -p $(DESTDIR)$(PREFIX)/bin
+       cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
+
+.PHONY: uninstall
+uninstall:
+       rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)