aboutsummaryrefslogtreecommitdiff
path: root/src/util/pty/Makefile.in
blob: 1bf272b587ec39fe0ebfcf49cc49260bfcddc059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
thisconfigdir=.
BUILDTOP=$(REL)$(U)$(S)$(U)
RELDIR=../util/pty
CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)

SED = sed

LIB=pty
LIBMAJOR=1
LIBMINOR=0

STLIBOBJS= cleanup.o getpty.o init_slave.o open_ctty.o open_slave.o \
	update_utmp.o update_wtmp.o vhangup.o void_assoc.o pty_err.o \
	logwtmp.o init.o

STOBJLISTS=OBJS.ST

INSTALLFILE = cp

# for pty-int.h
LOCALINCLUDE=-I. -I$(srcdir)

FILES= Makefile cleanup.c getpty.c init_slave.c open_ctty.c open_slave.c update_utmp.c update_wtmp.c vhangup.c void_assoc.c pty_err.h pty_err.c\
logwtmp.c init.c

CFILES=$(srcdir)/cleanup.c $(srcdir)/getpty.c $(srcdir)/init_slave.c \
	$(srcdir)/open_ctty.c $(srcdir)/open_slave.c \
	$(srcdir)/update_utmp.c $(srcdir)/update_wtmp.c $(srcdir)/vhangup.c \
	$(srcdir)/void_assoc.c $(srcdir)/logwtmp.c \
	$(srcdir)/init.c


SRCS=pty_err.c $(CFILES)
SHLIB_EXPDEPS = \
	$(TOPLIBD)/libcom_err$(SHLIBEXT)
SHLIB_EXPLIBS= -lcom_err 
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)

DEPLIBS=

#
all-unix:: includes pty_err.h

all-unix:: all-liblinks

install-unix:: install-libs

clean-unix::
	$(RM) libpty.a $(BUILDTOP)/include/libpty.h pty_err.c pty_err.h
clean-unix:: clean-liblinks clean-libs clean-libobjs

depend::  pty_err.h

install:: libpty.h
	$(INSTALL_DATA) $(srcdir)/libpty.h  $(DESTDIR)$(KRB5_INCDIR)/libpty.h

clean-mac::
	$(RM) libpty.a
	$(RM) $(LIBOBJS)

## 

includes:: libpty.h
	if cmp $(srcdir)/libpty.h \
	$(BUILDTOP)/include/libpty.h >/dev/null 2>&1; then :; \
	else \
		(set -x; $(RM) $(BUILDTOP)/include/libpty.h; \
		 $(CP) $(srcdir)/libpty.h \
			$(BUILDTOP)/include/libpty.h) ; \
	fi

clean-unix::
	$(RM) $(BUILDTOP)/include/libpty.h



clean-unix:: clean-liblinks clean-libs clean-libobjs clean-files

clean-mac:: clean-files

clean-files::
	rm -f *~ \#* *.bak \
		*.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
		*.cp *.fn *.ky *.log *.pg *.tp *.vr \
		*.o profiled/?*.o libcom_err.a libcom_err_p.a \
		com_err.o compile_et \
		et.ar TAGS y.tab.c lex.yy.c error_table.c \
		et_lex.lex.c \
		test1.h test1.c test2.h test2.c test_et \
		eddep makedep *.ln

pty_err.o: pty_err.c
pty_err.h: pty_err.et
pty_err.c: pty_err.et