head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	99.06.11.20.46.33;	author pcurtis;	state Exp;
branches;
next	1.1;

1.1
date	98.12.01.16.48.06;	author pier;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Initial whiteboard version of NSAPI module
@
text
@#
#  JServ/NSAPI  -- A servlet runner for Netscape Enterprise/FastTrack
#                  web servers.
#
#  This NSAPI module implements the Apache Jserv APJv1.1 protocol to
#  communicate with Java VM servlet engines using Apache JServ 1.0x
#
#  This software is covered under the GNU Public License version 2.
#  See LICENSE.TXT for details
#  Copyright (c) 1999 Paul Curtis, pcurtis@@netscape.com
#
#  This software contains derivative works as follows:
#    MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
#    Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. 
#    All rights reserved.
#
#    Portions of jserv_ajpv11.c
#    Copyright (c) 1997-1999 The Java Apache Project.  All rights reserved.

# Defines for example NSAPI programs running under LINUX

# change to your c compiler
CC=gcc

# change to your NSAPI include directory, usually /usr/suitespot/nsapi/include (or similar)
INCLUDEDIR=/home/pcurtis/nsapi/include

# change to your OS definition
OS_DEF=-DLINUX

# Change to your specific OS
LD_SHAREDCMD=ld -G



##################################################################

CC_CMD=$(CC) -g -DNET_SSL -D_REENTRANT -Wall

INCLUDE_FLAGS=-I$(INCLUDEDIR)
COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX $(OS_DEF)

OBJS=write_header.o write_string.o write_pblock.o get_host.o request_handler.o \
	jserv_nsapi.o jserv_fgets.o jserv_log.o jserv_auth.o md5c.o

all: jserv_nsapi.so

.c.o:
	$(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c $< 

jserv_nsapi.so: $(OBJS)
	$(LD_SHAREDCMD) $(OBJS) -o jserv_nsapi.so $(EXTRA_LDDEFINES)

clean:
	rm -f *.o *.so 
@


1.1
log
@Moved these files to the right directory
@
text
@d1 31
a31 3
# Defines for example NSAPI programs running under SOLARIS
CC=/usr/local/bin/gcc
CC_CMD=$(CC) -DNET_SSL -DSOLARIS -D_REENTRANT -DNS_API_V2 -DDEBUG
a32 2
all:
prepare:
a33 1
INCLUDEDIR=../include
a34 2
INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base -I$(INCLUDEDIR)/frame
COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20
d36 3
a38 1
all: mod_jserv.so
d40 9
a48 3
mod_jserv.so: mod_jserv.o
	$(LD_SHAREDCMD) mod_jserv.o -o mod_jserv.so $(EXTRA_LDDEFINES)
.c.o: mod_jserv.c
d50 4
d55 1
a55 1
	rm -f mod_servelet.o mod_servelet.so 
@

