Only print extensions when there are some.
# Sparc64 hack
ifeq ($(shell uname -m),sparc64)
# The kernel is 64-bit, even though userspace is 32.
-CFLAGS+=-DIPT_MIN_MATCH_ALIGN=8 -DIPT_MIN_ENTRY_ALIGN=8 -DKERNEL_64_USERSPACE_32
+CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
endif
ifndef IPT_LIBDIR
default: print-extensions all
print-extensions:
- @echo Extensions found: $(OPTIONALS)
+ @[ -n "$(OPTIONALS)" ] && echo Extensions found: $(OPTIONALS)
iptables.o: iptables.c
$(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<