Commit c82ac0dd authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Proper (mostly) makefile.

parent 8c00bd90
BINS = suexec
SCRIPTS = paperbag plasticwrap
CFLAGS = -O -g
INSTALL = install -c
INSTALL_BINDIR = /usr/testbed/bin
all: $(BINS)
suexec: suexec.c suexec.h
$(CC) $(CFLAGS) -o suexec suexec.c
install: $(addprefix $(INSTALL_BINDIR)/, $(BINS))
@echo "Don't forget to do a post-install as root"
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
$(INSTALL) $< $@
chown root $(INSTALL_BINDIR)/suexec
chmod u+s $(INSTALL_BINDIR)/suexec
rm -f *.o $(BINS) core
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment