BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.bin / tn3270 / makefile
index fb9c65e..2fc95a8 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.6 (Berkeley) %G%
-#
+#      @(#)makefile    4.9 (Berkeley) 5/8/91
 
 # Makefile for tn3270 and friends...
 #
 
 # Makefile for tn3270 and friends...
 #
@@ -152,7 +135,7 @@ LIBTERM             = -ltermlib
 # The source files...
 ALLH = telextrn.h
 
 # The source files...
 ALLH = telextrn.h
 
-MSMAIN = ascii/mset.c
+MSMAIN = ${.CURDIR}/ascii/mset.c
 
 ALLC =
 
 
 ALLC =
 
@@ -169,12 +152,13 @@ SYS       = sys_curses
 
 # The places where the various components live...
 
 
 # The places where the various components live...
 
-SUBDIR =       api ascii ctlr general ${SYS} telnet
+SUBDIR =       ${.CURDIR}/api ${.CURDIR}/ascii ${.CURDIR}/ctlr \
+               ${.CURDIR}/general ${.CURDIR}/${SYS} ${.CURDIR}/telnet
 
 # The following are directories we don't do regular make's in, but
 # we do make everywhere, print, and sourcelist in.
 
 
 # The following are directories we don't do regular make's in, but
 # we do make everywhere, print, and sourcelist in.
 
-EXTRADIR =     tools
+EXTRADIR =     ${.CURDIR}/tools
 
 # The libraries we use.  The order here is important.
 # syslib.a and ctlrlib.a should come first, then the rest.
 
 # The libraries we use.  The order here is important.
 # syslib.a and ctlrlib.a should come first, then the rest.
@@ -184,8 +168,8 @@ SUBLIB =    ${SYS}/syslib.a ctlr/ctlrlib.a \
 .s.o:
        /lib/cpp -E $< | as -o $@
 
 .s.o:
        /lib/cpp -E $< | as -o $@
 
-.c.obj:
-       ${CC} ${CFLAGS} -c $<
+#.c.obj:
+#      ${CC} ${CFLAGS} -c $<
 
 all:   FRC tn3270$X mset$X
 
 
 all:   FRC tn3270$X mset$X
 
@@ -193,9 +177,9 @@ 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) \
+               $L ${SUBLIB} api/libapi.a $(LIBCURSES) $(LIBTERM) \
                -lcompat
 
 #PC_tn3270$X:
                -lcompat
 
 #PC_tn3270$X:
@@ -203,12 +187,12 @@ tn3270$X: telnet/telprog.o ${SUBLIB} api/apilib.a
 #PC_   telnet
 #PC_   tn3270
 #PC_   nul
 #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)