chiark / gitweb /
changelog: 0.6.0 WIP
[userv-utils.git] / www-cgi / Makefile
index 1626d0d02a758aae6c85f01e03c533ed881096a2..57c1d6a0f3f59c0252d40c4c685f3d373504ed20 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1999 Ian Jackson
+# Copyright (C) 1999,2003 Ian Jackson
 #
 # This is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 #
 # $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
 
@@ -31,5 +33,15 @@ 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)
+               rm -f $(TARGETS) *.o