Add diclaimer of copyright to _osname() manual page.
[unix-history] / usr.bin / tn3270 / api / makefile
CommitLineData
15637ed4
RG
1# @(#)makefile 4.5 (Berkeley) 4/26/91
2#
3# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
4# -------------------- ----- ----------------------
5# CURRENT PATCH LEVEL: 1 00084
6# -------------------- ----- ----------------------
7#
8# 28 Feb 93 Nick Handel Use correct mk template file.
9#
10DEBUG_FLAGS = #-g
11
12CFLAGS = ${DEBUG_FLAGS}
13#CFLAGS = -I obj ${DEBUG_FLAGS}
14
15PRINT = lpr -p
16
17KBD = 3270pc.kbd
18KBD = unix.kbd
19
20SRCS = apilib.c api_bsd.c api_exch.c asc_ebc.c astosc.c dctype.c \
21 disp_asc.c ebc_disp.c
22
23ALLH = apilib.h api_exch.h asc_ebc.h astosc.h disp_asc.h dctype.h ebc_disp.h
24
25
26ALLHC= ${ALLH} ${SRCS}
27ALLPRINT = ${ALLHC}
28
29ALLSOURCE = ${ALLPRINT} makefile makefile.mak
30
31CLEANFILES = disp_out asc_disp.out astosc.out disp_asc.out \
32 astosc.OUT disp_asc.OUT \
33 test* test.o t1* t1.o t2* t2.o
34
35#LIBDIR = ${.CURDIR}/obj
36#LINTLIBDIR = ${.CURDIR}/obj
37LIB = api
38
39.DEFAULT:
40 sccs get $<
41
42sccsclean:
43 -sccs clean
44 -sccs get makefile
45
46action:
47 ${ACTION}
48
49test: apilib.a test.o
50 ${CC} ${CFLAGS} -o $@ test.o apilib.a
51
52t1: apilib.a t1.o
53 ${CC} ${CFLAGS} -o $@ t1.o apilib.a
54
55t2: apilib.a t2.o
56 ${CC} ${CFLAGS} -o $@ t2.o apilib.a
57
58print:
59 ${PRINT} ${ALLPRINT}
60
61clist: ${SRCS}
62 @for i in ${SRCS} ; \
63 do (echo ${DIRPATH}$$i); done
64
65hclist: ${ALLHC}
66 @for i in ${ALLHC} ; \
67 do (echo ${DIRPATH}$$i); done
68
69sourcelist: ${ALLSOURCE}
70 @for i in ${ALLSOURCE}; \
71 do (echo ${DIRPATH}$$i); done
72
73astosc.OUT: ../ctlr/function.h ../ctlr/hostctlr.h ../ctlr/$(KBD)
74 (cd ${.CURDIR}/../tools; make mkastosc )
75 -rm $@ astosc.out
76 ../tools/mkastosc ${.CURDIR}/../ctlr/hostctlr.h \
77 ${.CURDIR}/../ctlr/function.h < \
78 ${.CURDIR}/../ctlr/$(KBD) > $@
79 ln $@ astosc.out
80
81asc_disp.out: ebc_disp.o
82 (cd ${.CURDIR}/../tools; make mkastods )
83 -rm $@
84 ../tools/mkastods > $@
85
86disp_asc.OUT: ebc_disp.o
87 (cd ${.CURDIR}/../tools; make mkdstoas )
88 -rm $@ disp_asc.out
89 ../tools/mkdstoas > $@
90 ln $@ disp_asc.out
91
92# Some special dependencies...
93astosc.o: astosc.OUT
94disp_asc.o: disp_asc.OUT asc_disp.out
95
96.MAIN: myall
97# Actually do some work
98.include <bsd.lib.mk>
99
100myall: lib${LIB}.a
101 ranlib lib${LIB}.a