Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1
2 # OS_* variables vary according to your operating system. See INSTALL
3 # for details
4
5 # Linux 2.4
6 OS_CFLAGS=-DNEED_PTY_H -fno-strict-aliasing
7 # FreeBSD, version unknown
8 #OS_CFLAGS=-DNEED_LIBUTIL_H
9 # Solaris, some version of
10 #OS_CFLAGS=-DNEED_STRINGS_H -DNEED_LOCAL_FORKPTY_H
11 # MacOS X needs the local forkpty, and < 10.3 needs libpoll from fink
12 # OS_CFLAGS=-DNEED_LOCAL_FORKPTY_H -I/sw/include
13
14 # -lutil has forkpty() in it in Linux 2.4, and apparently at least
15 # doesn't break anything in FreeBSD.
16 OS_LDLIBS=-lutil
17 # Solaris users need this instead
18 #OS_LDLIBS=-lnsl -lsocket
19 # MacOS X <10.3 needs libpoll from fink, later versions don't
20 # OS_LDLIBS=-L/sw/lib -lpoll
21
22 OS_OBJECTS=
23 # no forkpty in Solaris or MacOS X
24 # OS_OBJECTS=forkpty.o
25
26 INSTALL_DIR=/usr/local/bin
27
28 # You probably don't need to edit anything below this line
29
30 ADD_CFLAGS=
31 ADD_LDLIBS=
32
•33 CFLAGS:=$(OS_CFLAGS) $(ADD_CFLAGS) $(CFLAGS)
34 LDLIBS:=$(OS_LDLIBS) $(ADD_LDLIBS) $(LDLIBS)
35
36 all: detachtty attachtty
37 clean:
38 rm -f *.o *~ attachtty detachtty
39
40 install: all
41 install detachtty attachtty $(DESTDIR)$(INSTALL_DIR)
42
43 deb:
44 rm -rf /usr/local/src/Packages/detachtty/
45 CVSROOT=`cat CVS/Root` cvs-buildpackage -W/usr/local/src/Packages -F -uc -us -rfakeroot
46 lintian /usr/local/src/Packages/detachtty*.changes
47
48 detachtty: detachtty.o copy-stream.o errors.o $(OS_OBJECTS)
49 attachtty: attachtty.o copy-stream.o errors.o $(OS_OBJECTS)