GNUmakefile.in 1.01 KB
Newer Older
Leigh Stoller's avatar
Leigh Stoller committed
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2002, 2004, 2005, 2006 University of Utah and the Flux Group.
Leigh Stoller's avatar
Leigh Stoller committed
4 5 6
# All rights reserved.
#

7 8 9 10 11 12 13 14 15
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= lib/libtb

include $(OBJDIR)/Makeconf

all:	libtb.a

16
client:	libtb-nodb.a
17
	cmp -s libtb-nodb.a libtb.a || cp -pf libtb-nodb.a libtb.a
18
client-install: client
19

20 21 22 23 24
# The point of this is to make sure a nodb version of the library is
# built during the ops-install target when installing a new emulab.
# This is done on ops of course.
control-install: client

25 26
include $(TESTBED_SRCDIR)/GNUmakerules

27
OBJS		= log.o tbdefs.o popenf.o systemf.o be_user.o tmcc.o
28 29
CFLAGS	       += -O -g -Wall -I${OBJDIR} -I/usr/local/include

30 31 32 33 34
libtb.a:	$(OBJS) tbdb.o
	$(AR) crv $@ $(OBJS) tbdb.o
	$(RANLIB) $@

libtb-nodb.a:	$(OBJS)
35 36 37 38
	$(AR) crv $@ $(OBJS)
	$(RANLIB) $@

log.o:		log.h
39 40
tbdb.o:		tbdb.h log.h tbdefs.h
tbdefs.o:	tbdefs.h
41 42
popenf.o:	popenf.h
systemf.o:	systemf.h
43
be_user.o:	be_user.h
44
tmcc.o:		popenf.h tmcc.h
45

Mike Hibler's avatar
Mike Hibler committed
46
install: all
47 48 49

clean:
	/bin/rm -f *.o *.a