Many improvements and bug fixes.
[egate.git] / www / Makefile
index beb9aeb..b522a08 100644 (file)
@@ -2,7 +2,11 @@
 # Europagate, 1995
 #
 # $Log: Makefile,v $
-# Revision 1.11  1995/11/07 14:56:58  adam
+# Revision 1.12  1995/11/08 16:14:32  adam
+# Many improvements and bug fixes.
+# First version that ran on dtbsun.
+#
+# Revision 1.11  1995/11/07  14:56:58  adam
 # Work on search in multiple targets.
 # New wtcl command: wlog.
 # Optional timeout parameter to zwait.
@@ -46,7 +50,7 @@ SHELL=/bin/sh
 ZDEFS=
 ZINC=-I../../yaz/include
 ZLIB=../../yaz/lib/libyaz.a
-MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
+#MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
 LIBIRTCL=/usr/local/lib/libirtcl.a $(ZLIB) $(MOSILIB)
 #
 OLIB=../lib/util.a ../lib/libres+log.a 
@@ -80,7 +84,8 @@ $(TPROG1): $(P1)
        $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
 
 $(TPROG2): $(P2)
-       $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) $(TCLLIB) -lm
+       $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) \
+               $(NETLIB) $(TCLLIB) -lm
 
 $(TPROG3): $(P3)
        $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
@@ -93,9 +98,10 @@ install.prog: $(TPROG1) $(TPROG2)
                cp $$x $(CGIBIN); \
                chmod +x $(CGIBIN)/$$x; \
        done; \
-       ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwtcl; \
-       ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwirtcl; \
-       ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwhtml
+       for p in egwtcl egwirtcl egwhtml; do \
+               rm -f $(CGIBIN)/$$p; \
+               ln $(CGIBIN)/$(TPROG2) $(CGIBIN)/$$p; \
+       done
 
 install.script:
        @for x in $(WSCRIPTS); do \