# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.1 1995/10/20 11:49:24 adam
+# Revision 1.2 1995/10/20 14:02:40 adam
+# First version of WWW gateway with embedded Tcl.
+#
+# Revision 1.1 1995/10/20 11:49:24 adam
# First version of www gateway.
#
SHELL=/bin/sh
INCLUDE=-I../include
#CFLAGS=-g -Wall -pedantic -ansi
OLIB=../lib/libres+log.a
+TCLLIB=/usr/local/lib/libtcl7.5.a
+WSCRIPTS=egwscript
+HSCRIPTS=egwindex.html
TPROG1=egwcgi
TPROG2=egwsh
TPROG3=wtest
P1=wcgi.o
-P2=wproto.o wsh.o
+P2=wproto.o winterp.o wsh.o wtcl.o whtml.o
P3=wproto.o wtest.o
CPP=$(CC) -E
DEFS=$(INCLUDE)
CGIBIN=$(HTTPDDIR)/cgi-bin
HTDOCS=$(HTTPDDIR)/htdocs
-all: $(TPROG1) $(TPROG2) $(TPROG3)
+all: $(TPROG1) $(TPROG2)
$(TPROG1): $(P1)
$(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
$(TPROG2): $(P2)
- $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB)
+ $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(TCLLIB) -lm
$(TPROG3): $(P3)
$(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
-install: $(TPROG1) $(TPROG2) $(TPROG3)
- @for x in $(TPROG1) $(TPROG2) $(TPROG3); do \
+install: $(TPROG1) $(TPROG2)
+ @for x in $(TPROG1) $(TPROG2); do \
echo Installing $$x; \
cp $$x $(CGIBIN); \
chmod +x $(CGIBIN)/$$x; \
done
+ @for x in $(WSCRIPTS); do \
+ echo Installing $$x; \
+ cp $$x $(CGIBIN); \
+ done
+ @for x in $(HSCRIPTS); do \
+ echo Installing $$x; \
+ cp $$x $(HTDOCS); \
+ done
.c.o:
$(CC) -c $(DEFS) $(CFLAGS) $<