Remove Redis objects on make clean

Resolves Issue #33.
This commit is contained in:
Alex Halderman 2013-08-20 12:23:12 -04:00
parent f34343a887
commit 9200992976

View File

@ -34,10 +34,11 @@ LDFLAGS+=$(EXTRALDFLAGS)
modules=module_tcp_synscan.o module_icmp_echo.o module_udp.o #ADD YOUR MODULE HERE modules=module_tcp_synscan.o module_icmp_echo.o module_udp.o #ADD YOUR MODULE HERE
objects=constraint.o blacklist.o cyclic.o logger.o send.o recv.o state.o monitor.o zopt_compat.o zmap.o random.o output_modules.o module_simple_file.o module_extended_file.o packet.o probe_modules.o ${modules} validate.o rijndael-alg-fst.o get_gateway.o aesrand.o objects=constraint.o blacklist.o cyclic.o logger.o send.o recv.o state.o monitor.o zopt_compat.o zmap.o random.o output_modules.o module_simple_file.o module_extended_file.o packet.o probe_modules.o ${modules} validate.o rijndael-alg-fst.o get_gateway.o aesrand.o
redis_objects=module_redis.o redis.o
ifeq ($(REDIS), true) ifeq ($(REDIS), true)
LDLIBS+=-lhiredis LDLIBS+=-lhiredis
objects+=module_redis.o redis.o objects+=$(redis_objects)
CFLAGS+=-DREDIS CFLAGS+=-DREDIS
endif endif
@ -60,7 +61,7 @@ install: zmap
@echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************" @echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************"
clean: clean:
-rm -f $(objects) $(TARGETS) -rm -f $(objects) $(redis_objects) $(TARGETS)
.PHONY: install clean .PHONY: install clean