###################################################################### # Makefile -- Makefile for simple-httpd # Copyright (c) 1995 Tero Kivinen # All Rights Reserved. # # Gen is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY. No author or distributor accepts responsibility to # anyone for the consequences of using it or for whether it serves any # particular purpose or works at all, unless he says so in writing. # Refer to the General Public License for full details. # # Everyone is granted permission to copy, modify and redistribute gen, # but only under the conditions described in the General Public # License. A copy of this license is supposed to have been given to # you along with gen so you can know your rights and responsibilities. # It should be in a file named COPYING. Among other things, the # copyright notice and this notice must be preserved on all copies. ###################################################################### # Program: simple-http # $Source: /iki/src/simple-httpd/RCS/Makefile,v $ # Author : $Author: kivinen $ # # (C) Tero Kivinen 1995 # # Creation : 14:44 Jul 16 1995 kivinen # Last Modification : 15:41 Feb 17 2010 kivinen # Last check in : $Date: 2010/02/17 13:41:42 $ # Revision number : $Revision: 1.5 $ # State : $State: Exp $ # Version : 1.12 # Edit time : 5 min # # Description : Makefile for simple-httpd # # $Log: Makefile,v $ # Revision 1.5 2010/02/17 13:41:42 kivinen # Updated address. # # Revision 1.4 1998/01/30 09:13:20 kivinen # Added man page handling. # # Revision 1.3 1997/05/13 16:09:06 kivinen # Added changes from liw for solaris. # # Revision 1.2 1996/02/16 13:33:13 kivinen # Added copy target. # # Revision 1.1 1995/07/16 11:44:52 kivinen # Created. # # # # If you have any useful modifications or extensions please send them to # Tero.Kivinen@iki.fi # ###################################################################### CC=gcc CFLAGS= -O9 -g -Wall # For solaris uncomment the next line # LIBS=-lsocket -lnsl LIBS= BINARY=/iki/bin/httpd MAN1=/usr/local/man/man1 SRC_EXPORT=/iki/www/htdocs/iki/src RM=rm -f MV=mv CP=cp httpd: httpd.o $(CC) -o httpd $(CFLAGS) httpd.o $(LIBS) clean: -$(RM) *.o httpd install: httpd -$(RM) $(BINARY).old -$(MV) $(BINARY) $(BINARY).old -$(CP) httpd $(BINARY) install-man: -$(CP) httpd.8 $(MAN1) copy: -$(RM) $(SRC_EXPORT)/httpd.c $(SRC_EXPORT)/Makefile \ $(SRC_EXPORT)/httpd.8 -$(CP) httpd.c Makefile httpd.8 $(SRC_EXPORT)/