# Generated automatically from Makefile.in by configure.
###########################################################################
# qDecoder - C/C++ CGI Library                      http://www.qDecoder.org
# 
# Copyright (C) 1999,2000 Hongik Internet, Inc.
# Copyright (C) 1998 Nobreak Technologies, Inc.
# Copyright (C) 1996,1997 Seung-young Kim.
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library 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
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# 
# Copyright Disclaimer:
#   Hongik Internet, Inc., hereby disclaims all copyright interest.
#   President, Christopher Roh, 6 April 2000
#
#   Nobreak Technologies, Inc., hereby disclaims all copyright interest.
#   President, Yoon Cho, 6 April 2000
#
#   Seung-young Kim, hereby disclaims all copyright interest.
#   Author, Seung-young Kim, 6 April 2000
# 
# Author:
#   Seung-young Kim <nobreak@hongik.com>
#   5th Fl., Daewoong Bldg., 689-4, Yoksam, Kangnam, Seoul, Korea 135-080
#   Tel: +82-2-562-8988, Fax: +82-2-562-8987
###########################################################################

# Which compiler
CC	= cc
CFLAGS	= -O -pipe 
DEFS	=  -DSTDC_HEADERS=1 -DHAVE_CTYPE_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 
INCLUDE	= -I. -I../src

# qDecoder Library Path
QLIB	= ../src/libqDecoder.a
#QLIB	= ../src/libqDecoder.so

## Main
all:	fetch.cgi multivalue.cgi upload.cgi download.cgi streamedit.cgi arglist.cgi

fetch.cgi: $(QLIB) fetch.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o fetch.cgi fetch.o $(QLIB)

multivalue.cgi:	$(QLIB) multivalue.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o multivalue.cgi multivalue.o $(QLIB)

upload.cgi: $(QLIB) upload.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o upload.cgi upload.o $(QLIB)
	chmod 6755 upload.cgi

download.cgi: $(QLIB) download.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o download.cgi download.o $(QLIB)

streamedit.cgi: $(QLIB) streamedit.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o streamedit.cgi streamedit.o $(QLIB)

arglist.cgi: $(QLIB) arglist.o
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -o arglist.cgi arglist.o $(QLIB)

$(QLIB):
	(cd ../src/; make all)

## Compile Module
.c.o:
	$(CC) ${CFLAGS} ${DEFS} ${INCLUDE} -c -o $@ $<

## Clear Module
clean:
	rm -f *.o *.cgi
