diff --git a/.gitignore b/.gitignore index ac47793..94e08f0 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ *.dSYM/ su-exec +su-exec-static +su-exec-debug diff --git a/Makefile b/Makefile index bda7689..0eead54 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CFLAGS ?= -Wall -Werror -g +CFLAGS ?= -Wall -Werror LDFLAGS ?= PROG := su-exec @@ -9,9 +9,14 @@ all: $(PROG) $(PROG): $(SRCS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + strip $@ $(PROG)-static: $(SRCS) $(CC) $(CFLAGS) -o $@ $^ -static $(LDFLAGS) + strip $@ + +$(PROG)-debug: $(SRCS) + $(CC) -g $(CFLAGS) -o $@ $^ $(LDFLAGS) clean: - rm -f $(PROG) $(PROG)-static + rm -f $(PROG) $(PROG)-static $(PROG)-debug