GNUmakefile.in 681 Bytes
Newer Older
1
2
3
4
5
6
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= tip

include $(OBJDIR)/Makeconf
7
8
9

all: tip.static # tip

10
include $(TESTBED_SRCDIR)/GNUmakerules
11

12
CC = gcc -g -O2
13

14
15
OBJS = cmds.o cmdtab.o hunt.o partab.o \
       remote.o tip.o value.o vars.o getcap.o
16

17
18
19
20
#
# If HAVE_UUCPLOCK is defined you need -lutil for BSD
#
LIBS=
21
22
23
24
25
26
27

tip: $(OBJS)
	$(CC) -o tip $(OBJS) $(LIBS)

tip.static: $(OBJS)
	$(CC) -static -o tip.static $(OBJS) $(LIBS)

28
29
30
$(OBJS): tipconf.h tip.h

install: all
31
	-mkdir -p $(INSTALL_BINDIR)
32
	$(INSTALL_PROGRAM) tip.static $(INSTALL_BINDIR)/tip
33

34
35
36
37
38
#
# Control node installation (okay, plastic)
#
control-install:	install

39
40
clean:
	rm -f $(OBJS) tip tip.static