--- Makefile.rules
+++ Makefile.rules
@@ -27,6 +27,11 @@
 DEBUG=1
 endif
 
+ifdef FREETZ
+CFLAGS    = $(AUTOFS_CFLAGS)
+LDFLAGS   =
+STRIP     = :
+else
 ifdef DEBUG
 CFLAGS    ?= -g -Wall -DDEBUG
 LDFLAGS   ?= -g
@@ -40,6 +45,7 @@
 else
 STRIP     ?= strip --strip-debug
 endif
+endif
 
 CC        ?= gcc
 CXX       ?= g++
