GNUmakefile.in 638 Bytes
Newer Older
1 2 3
#
# Insert Copyright Here.
#
4 5 6 7 8 9
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= discvr

include $(OBJDIR)/Makeconf
10 11 12

all: cli serv

13
include $(TESTBED_SRCDIR)/GNUmakerules
14

15 16 17
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
COBJS=cli.o 
18 19
LIBS = -lm
CFLAGS += -Wall -g 
20
CC=gcc
Kristin Wright's avatar
Kristin Wright committed
21

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

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

28 29
install:	all $(INSTALL_BINDIR)/cli $(INSTALL_BINDIR)/serv

30
clean: 
31
	/bin/rm -rf $(OBJS) $(SOBJS) $(COBJS) cli serv