include ../../nessus.tmpl
COMPILE = $(CC) $(DEFS) $(include) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(include) $(CFLAGS)
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@


OBJS = host.o hosts_loop.o showmount.o utils.o ip_loop.o icmp.o 

all : libhostloop.a

libhostloop.a : $(OBJS)
	$(LINK) $(OBJS)
	@cp libhostloop.a ${rootdir}/libs
        
ip_loop.o : ip_loop.c
	$(LIBTOOL) --mode=compile  $(COMPILE) -c ip_loop.c
        
icmp.o : icmp.c
	$(LIBTOOL) --mode=compile  $(COMPILE) -c icmp.c
	
host.o : host.c
	$(LIBTOOL) --mode=compile  $(COMPILE) -c host.c 
	 
hosts_loop.o : hosts_loop.c
	$(LIBTOOL) --mode=compile $(COMPILE) -c hosts_loop.c
	
showmount.o : showmount.c
	$(LIBTOOL) --mode=compile $(COMPILE)  -c showmount.c
	
utils.o : utils.c
	$(LIBTOOL) --mode=compile $(COMPILE) -c utils.c
	
clean :
	@rm -f OBJ/* libhostloop.a *~ *.lo *.o
	
