# Generated automatically from Makefile.in by configure.
##
##  $Id: Makefile.in,v 1.8 1999/05/14 17:57:17 sbooth Exp $
##
##  Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##

##
## Sample Makefile for a cgi application written using GNU Cgicc
##

##
## The name of the cgi target
TARGET=		foo.cgi

##
## The name(s) of your source file(s)
SOURCES=	yourSource.cc

##
## The name(s) of the object file(s)
OBJECTS=	$(SOURCES:%.cc=%.o)

##
## Don't change anything below this point unless you know what you're doing
##

##
## Directory info
prefix= 	/usr
exec_prefix= 	${prefix}
libdir= 	${exec_prefix}/lib
includedir= 	${prefix}/include

##
## Compiler setup
CXX=		c++
LIBS= 		 -L$(libdir) -lcgicc
DEFS=		-DHAVE_CONFIG_H

INCLUDES= 	-I$(includedir)

## On Solaris (probably SVR4 systems), use -R
LD_FLAGS=	 -R$(libdir)

## On Linux (probably BSD systems), use -rpath
#LD_FLAGS=	 -rpath$(libdir)

CXXFLAGS= 	-O2 -m486 -fno-strength-reduce
CPPFLAGS=	

COMPILE= 	$(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS)

##
## Target information
all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CXX) $(LD_FLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)

clean:
	-rm -f $(OBJECTS) $(TARGET)

##
## Compilation rules
%.o : %.cc
	$(COMPILE) -c $<

