#
# $Id: Makefile,v 1.1.1.1 2002/03/07 19:44:20 michal Exp $
#   
#   See the file COPYING for more information on the Copyright
#
#   Copyright (C) 1998  James Bourne <jbourne@hardrock.org>
#
#   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., 675 Mass Ave, Cambridge, MA 02139, USA.
#

CC=gcc
LIBS=
LDFLAGS=-L.
#DEBUG=-g -D_DEBUG
INCLUDE=-I.
CFLAGS= -Wall ${INCLUDE} ${DEBUG}
TARGET= uplmain
INCDIR=/usr/local/include/
LIBDIR=/usr/local/lib/
CGIDIR=/home/httpd/cgi-bin
MANDIR=/usr/local/man/man3

all: ${TARGET}
	
uplmain: uplmain.o cgiupl.o 
	${CC} ${CFLAGS} -o $@ $^  ${LDFLAGS} ${LIBS}

uplmain.o: uplmain.c
	${CC} ${CFLAGS} -c $<

# libcgiupl.a: cgiupl.o
# 	ar -r $@ $^

cgiupl.o: cgiupl.c cgiupl.h
	${CC} ${CFLAGS} -DCGIUPL -c $<

clean:
	rm -f core *~ *.o ${TARGET}

