File: Makefile.in

package info (click to toggle)
orville-write 2.55-2.3
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 568 kB
  • ctags: 317
  • sloc: ansic: 3,494; sh: 2,978; makefile: 156
file content (104 lines) | stat: -rw-r--r-- 3,606 bytes parent folder | download | duplicates (5)
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
96
97
98
99
100
101
102
103
104
SHELL= /bin/sh

srcdir= @srcdir@
VPATH= @srcdir@

CC= @CC@
INSTALL= @INSTALL@
LN= @LN_S@

prefix= @prefix@
exec_prefix= @exec_prefix@
bindir= @bindir@
mandir= @mandir@
datadir= @datadir@
sysconfdir= @sysconfdir@
localstatedir= @localstatedir@

groupid= @group_id@

CPPFLAGS= @CPPFLAGS@
CFLAGS= @CFLAGS@
LDFLAGS= @LDFLAGS@
LIB= @LIBS@

all: write mesg amin huh helpers

WSRC= wrt_main.c wrt_type.c wrt_him.c wrt_me.c wrt_opt.c wrt_sig.c \
	wrt_tty.c wrt_hist.c lib_common.c getutent.c
WOBJ= wrt_main.o wrt_type.o wrt_him.o wrt_me.o wrt_opt.o wrt_sig.o \
	wrt_tty.o wrt_hist.o lib_common.o getutent.o

write: $(WOBJ)
	$(CC) $(CFLAGS) -o write $(WOBJ) $(LIB)

wrt_main.o: wrt_main.c wrttmp.h write.h config.h orville.h
wrt_type.o: wrt_type.c wrttmp.h write.h config.h orville.h
wrt_him.o: wrt_him.c lib_common.h getutent.h wrttmp.h write.h config.h orville.h
wrt_me.o: wrt_me.c lib_common.h getutent.h wrttmp.h write.h config.h orville.h
wrt_opt.o: wrt_opt.c wrttmp.h write.h config.h orville.h
wrt_sig.o: wrt_sig.c wrttmp.h write.h config.h orville.h
wrt_tty.o: wrt_tty.c wrttmp.h write.h config.h orville.h
wrt_hist.o: wrt_hist.c wrttmp.h write.h config.h orville.h
lib_common.o:lib_common.c getutent.h lib_common.h wrttmp.h config.h orville.h
getutent.o: getutent.c getutent.h wrttmp.h config.h orville.h
mesg.o: mesg.c wrttmp.h lib_common.h config.h orville.h
amin.o: amin.c wrttmp.h lib_common.h config.h orville.h
huh.o: huh.c wrttmp.h lib_common.h config.h orville.h
helpers.o: helpers.c wrttmp.h getutent.h config.h orville.h
wt.o: wt.c wrttmp.h config.h orville.h

mesg: mesg.o lib_common.o getutent.o
	$(CC) $(LDFLAGS) -o mesg mesg.o lib_common.o getutent.o

amin: amin.o lib_common.o getutent.o
	$(CC) $(LDFLAGS) -o amin amin.o lib_common.o getutent.o

huh: huh.o lib_common.o getutent.o
	$(CC) $(LDFLAGS) -o huh huh.o lib_common.o getutent.o

helpers: helpers.o getutent.o
	$(CC) $(LDFLAGS) -o helpers helpers.o getutent.o lib_common.o

wt: wt.o
	$(CC) $(LDFLAGS) -o wt wt.c lib_common.o getutent.o

install: write mesg amin huh helpers
	./install-sh -d $(bindir)
	$(INSTALL) -o root -g $(groupid) -m 6711 write $(bindir)
	-(cd $(bindir); $(LN) write ojot; $(LN) write tel; $(LN) write telegram)
	$(INSTALL) -o root -m 4711 mesg $(bindir)
	$(INSTALL) -o root -m 4711 amin $(bindir)
	$(INSTALL) -o root -m 4711 huh $(bindir)
	$(INSTALL) -m 4711 helpers $(bindir)
	./install-sh -d $(sysconfdir)
	$(INSTALL) -m 644 orville.conf $(sysconfdir)
	-rm -f $(localstatedir)/wrttmp
	touch $(localstatedir)/wrttmp
	chown root $(localstatedir)/wrttmp
	chmod 600 $(localstatedir)/wrttmp
	-rm -f $(localstatedir)/wrthist
	touch $(localstatedir)/wrthist
	chmod 600 $(localstatedir)/wrthist
	./install-sh -d $(mandir)/man1
	$(INSTALL) -m 644 write.1 $(mandir)/man1
	$(INSTALL) -m 644 mesg.1 $(mandir)/man1
	$(INSTALL) -m 644 amin.1 $(mandir)/man1
	$(INSTALL) -m 644 huh.1 $(mandir)/man1
	$(INSTALL) -m 644 helpers.1 $(mandir)/man1

write.tar: README INSTALLATION CHANGES $(WSRC) wrttmp.h write.h orville.h \
	lib_common.h getutent.h mesg.c amin.c huh.c amin.1 write.1 mesg.1 \
	huh.1 wrttab wt.c say Makefile.in configure.in configure install-sh \
	config.h.in orville.conf
	tar cvf write.tar README INSTALLATION CHANGES $(WSRC) write.h \
	wrttmp.h orville.h lib_common.h getutent.h mesg.c amin.c huh.c amin.1 \
	write.1 mesg.1 huh.1 wrttab wt.c helpers.c helpers.1 say \
	Makefile.in configure.in configure install-sh config.h.in orville.conf

clean:
	-rm -f wt core *.o

distclean:
	-rm -f write mesg amin huh helpers wt core *.o config.h config.cache \
	config.cache config.status Makefile write.tar config.log