GNUmakefile.in 738 Bytes
Newer Older
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2 3 4
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
5
#
6 7 8 9 10 11
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= discvr

include $(OBJDIR)/Makeconf
12 13 14

all: cli serv

15
include $(TESTBED_SRCDIR)/GNUmakerules
16

17 18
OBJS=get_ifi_info.o get_rtaddrs.o net_rt_iflist.o sock_ntop.o util.o
SOBJS=serv_listen.o recvfromflags.o if_indextoname.o reply.o serv.o forw_requests.o
19
COBJS=cli.o generate_namfile.o
20 21
LIBS = -lm
CFLAGS += -Wall -g 
22
CC=gcc
Kristin Wright's avatar
Kristin Wright committed
23

24
cli: ${OBJS} ${COBJS}
25
	$(CC) $(LIBS) $(OBJS) $(COBJS) -o cli
Kristin Wright's avatar
Kristin Wright committed
26

27
serv: ${OBJS} ${SOBJS}
28
	$(CC) $(OBJS) $(SOBJS) ${LIBS} -o serv
Kristin Wright's avatar
Kristin Wright committed
29

30 31
install:	all $(INSTALL_BINDIR)/cli $(INSTALL_BINDIR)/serv

32
clean: 
33
	/bin/rm -rf $(OBJS) $(SOBJS) $(COBJS) cli serv