chiark / gitweb /
ipif: abolish use of slip: fixes from testing
[userv-utils.git] / www-cgi / Makefile
index 202021ea4b92a173f4e75eef2f33bcaf804487de..440de6b27edd5a995a3f218746870da8fc1c1b1b 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
 
@@ -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)