386BSD 0.1 development
[unix-history] / usr / src / usr.bin / tn3270 / makefile
index 730c4e0..2c9aefd 100644 (file)
@@ -1,21 +1,4 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)makefile    4.7 (Berkeley) %G%
-#
+#      @(#)makefile    4.9 (Berkeley) 5/8/91
 
 # Makefile for tn3270 and friends...
 #
 
 # Makefile for tn3270 and friends...
 #
@@ -104,7 +87,7 @@ RM   = rm -f
 LINT_ARGS =
 #PC_LINT_ARGS = -DLINT_ARGS
 
 LINT_ARGS =
 #PC_LINT_ARGS = -DLINT_ARGS
 
-DEBUG_FLAGS = -g
+DEBUG_FLAGS = #-g
 #PC_DEBUG_FLAGS = -Zi -Od
 
 AR     = ar
 #PC_DEBUG_FLAGS = -Zi -Od
 
 AR     = ar
@@ -125,7 +108,7 @@ ACTION = @sccs tell
 
 DEFINES= ${LINT_ARGS} -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
 
 
 DEFINES= ${LINT_ARGS} -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
 
-INCLUDES = -I. -I..
+INCLUDES = -I. -I.. -I../../lib -I../../../lib
 
 OPTIMIZE = -O
 OPTIMIZE = ${DEBUG_FLAGS}
 
 OPTIMIZE = -O
 OPTIMIZE = ${DEBUG_FLAGS}
@@ -139,8 +122,8 @@ LINTFLAGS   = -hbxaz
 DESTDIR=
 
 BINDIR         = $(DESTDIR)/usr/bin
 DESTDIR=
 
 BINDIR         = $(DESTDIR)/usr/bin
-MAN1DIR                = $(DESTDIR)/usr/man/cat1
-MAN5DIR                = $(DESTDIR)/usr/man/cat5
+MAN1DIR                = $(DESTDIR)/usr/share/man/cat1
+MAN5DIR                = $(DESTDIR)/usr/share/man/cat5
 
 # Names for the terminal libraries...
 LIBCURSES      = -lcurses
 
 # Names for the terminal libraries...
 LIBCURSES      = -lcurses
@@ -194,22 +177,22 @@ FRC:
        for i in ${SUBDIR}; \
                do (cd $$i; make ${MFLAGS} "CFLAGS=${CFLAGS}"); done
 
        for i in ${SUBDIR}; \
                do (cd $$i; make ${MFLAGS} "CFLAGS=${CFLAGS}"); done
 
-tn3270$X:      telnet/telprog.o ${SUBLIB} api/apilib.a
+tn3270$X:      telnet/telprog.o ${SUBLIB} api/libapi.a
        ${CC} ${CFLAGS} -o tn3270 telnet/telprog.o \
        ${CC} ${CFLAGS} -o tn3270 telnet/telprog.o \
-               $L ${SUBLIB} api/apilib.a $(LIBCURSES) $(LIBTERM) \
-               -lcompat
+               $L ${SUBLIB} api/libapi.a $(LIBCURSES) $(LIBTERM) \
+               -ltelnet
 
 #PC_tn3270$X:
 #PC_   link <@<
 #PC_   telnet
 #PC_   tn3270
 #PC_   nul
 
 #PC_tn3270$X:
 #PC_   link <@<
 #PC_   telnet
 #PC_   tn3270
 #PC_   nul
-#PC_   ${SUBLIB} api/apilib.a+
+#PC_   ${SUBLIB} api/libapi.a+
 #PC_   \lib\ublib\ubtcp
 #PC_   _PC_<
 
 mset$X:        mset$O ascii/map3270$O
 #PC_   \lib\ublib\ubtcp
 #PC_   _PC_<
 
 mset$X:        mset$O ascii/map3270$O
-       ${CC} ${CFLAGS} -o mset mset$O ascii/map3270$O $L api/apilib.a
+       ${CC} ${CFLAGS} -o mset mset$O ascii/map3270$O $L api/libapi.a
 
 mset$O:        $(MSMAIN)
        $(CC) $(CFLAGS) -c $(MSMAIN)
 
 mset$O:        $(MSMAIN)
        $(CC) $(CFLAGS) -c $(MSMAIN)