386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 2 Mar 1992 20:02:19 +0000 (12:02 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 2 Mar 1992 20:02:19 +0000 (12:02 -0800)
Work on file usr/src/usr.bin/tn3270/ascii/makefile

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/src/usr.bin/tn3270/ascii/makefile [new file with mode: 0644]

diff --git a/usr/src/usr.bin/tn3270/ascii/makefile b/usr/src/usr.bin/tn3270/ascii/makefile
new file mode 100644 (file)
index 0000000..99c2480
--- /dev/null
@@ -0,0 +1,141 @@
+#      @(#)makefile    4.3 (Berkeley) 5/8/91
+
+# msdos versus unix defines
+O      = .o
+#PC_O  = .obj
+
+X      =
+#PC_X  = .exe
+
+L      =
+#PC_L  = -link
+
+CC     = cc
+#PC_CC = cl
+
+MV     = mv
+#PC_MV = rename
+
+RM     = rm -f
+#PC_RM= erase
+
+LINT_ARGS =
+#PC_LINT_ARGS = -DLINT_ARGS
+
+DEBUG_FLAGS = #-g
+#PC_DEBUG_FLAGS = -Zi -Od
+
+AR     = ar
+AR1    = cr
+AR2    =
+AR3    =
+#PC_AR = lib
+#PC_AR1        =
+#PC_AR2        = +
+#PC_AR3        = ";"
+
+RANLIB = ranlib
+#PC_RANLIB = echo "Done with "
+
+PRINT  = print
+
+DEFINES = ${LINT_ARGS}
+
+INCLUDES = -I.
+
+OPTIMIZE = -O
+OPTIMIZE = ${DEBUG_FLAGS}
+
+CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
+
+# Lint flags
+LINTFLAGS      = -hbxaz
+
+KBD    = 3270pc.kbd
+KBD    = unix.kbd
+
+
+# The source files...
+ALLH = map3270.h state.h
+
+ALLC = map3270.c mset.c termin.c
+
+# We don't include mset$O here...
+ALLO   = map3270$O termin$O
+
+
+ALLHC= ${ALLH} ${ALLC}
+ALLPRINT =     default.map ${ALLHC}
+
+ALLSOURCE =    ${ALLPRINT} makefile makefile.mak
+
+.s.o:
+       /lib/cpp -E $< | as -o $@
+
+#.c.obj:
+#      ${CC} ${CFLAGS} -c $<
+
+asciilib.a:    $(ALLO)
+       ${RM} $@
+       for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
+       ${RANLIB} $@
+
+clean:
+       for i in $(ALLO) errs makefile.bak asciilib.a; \
+               do (${RM} $$i); done
+
+sccsclean:
+       -sccs clean
+       -sccs get makefile
+
+clist: ${ALLC}
+       @for i in ${ALLC} ; \
+               do (echo ${DIRPATH}$$i); done
+
+hclist:        ${ALLHC}
+       @for i in ${ALLHC} ; \
+               do (echo ${DIRPATH}$$i); done
+
+sourcelist:    ${ALLSOURCE}
+       @for i in ${ALLSOURCE}; \
+               do (echo ${DIRPATH}$$i); done
+
+print:
+       ${PRINT} ${ALLPRINT}
+
+tags:  ${ALLC} ${ALLH}
+       ctags -t ${ALLC} ${ALLH}
+
+action:
+       ${ACTION}
+
+lint:
+       lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC}
+
+.DEFAULT:
+       sccs get $<
+
+depend:
+       grep '^#include' ${ALLC} | grep -v '<' | \
+       sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
+           -e 's/\.c/$$O/' | \
+       awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
+               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
+                      else rec = rec " " $$2 } } \
+             END { print rec } ' > makedep
+       echo '$$r makedep' >>eddep
+       echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
+       echo '$$r makedep' >>eddep
+       echo 'w' >>eddep
+       -rm -f makefile.bak
+       cp makefile makefile.bak
+       ed - makefile < eddep
+       rm eddep makedep
+
+# DO NOT DELETE THIS LINE
+
+map3270$O: state.h map3270.h ../general/globals.h default.map
+mset$O: ../ctlr/function.h state.h map3270.h ../api/astosc.h
+mset$O: ../general/globals.h
+termin$O: ../general/general.h ../ctlr/function.h ../ctlr/externs.h
+termin$O: ../ctlr/declare.h ../api/astosc.h state.h ../general/globals.h