topdir=$(shell pwd)/.. | |
include $(topdir)/Make.Rules | |
# | |
# Programs: all of the examples that we will compile | |
# | |
PROGS=getpcaps setpcaps execcap sucap | |
# when we have filecaps... | |
#PROGS+=getcap setcap | |
all: $(PROGS) | |
$(PROGS): %: %.o | |
$(CC) $(LDFLAGS) -o $@ $< $(LIBS) | |
%.o: %.c $(INCS) | |
$(CC) $(CFLAGS) -c $< -o $@ | |
install: all | |
mkdir -p -m 0755 $(SBINDIR) | |
for p in $(PROGS) ; do \ | |
install -s -m 0755 $$p $(SBINDIR) ; \ | |
done | |
clean: | |
$(LOCALCLEAN) | |
rm -f *.o $(PROGS) |