chiark / gitweb /
*** empty log message ***
[userv-utils.git] / www-cgi / Makefile
index 202021e..53dbf0a 100644 (file)
 #
 # $Id$
 
-CFLAGS=        -Wall -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes \
-       -Wpointer-arith -O2 -g
-LDFLAGS=
+
+include ../settings.make
+
+uslibdir=      $(libdir)/userv/cgi
+uslibcgidir=   $(uslibdir)/cgi
 
 TARGETS=       ucgi ucgitarget
 
@@ -30,3 +32,16 @@ ucgi:                ucgi.o ucgicommon.o
 ucgitarget:    ucgitarget.o ucgicommon.o
 
 $(OBJS):       ucgi.h
+
+install:       all
+               mkdir -p $(uslibcgidir)
+               cp -b ucgitarget $(uslibdir)/target
+               cp -b ucgi $(uslibcgidir)/
+               ln -sf ucgi $(uslibcgidir)/ucgi-debug
+
+install-examples:
+
+install-docs:
+
+clean distclean realclean:
+               rm -f $(TARGETS)