head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	97.05.04.05.34.03;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	97.04.28.01.01.20;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	97.04.21.04.34.04;	author morgan;	state Exp;
branches;
next	;


desc
@first take
@


1.3
log
@took care of case that install cannot handle more than one file
@
text
@##
## $Log: Makefile,v $
## Revision 1.2  1997/04/28 01:01:20  morgan
## update with zefram's patches
##
## Revision 1.1  1997/04/21 04:34:04  morgan
## Initial revision
##
##

topdir=..
include $(topdir)/Make.Rules

#
# Programs: getcap and setcap
#
PROGS=getcap setcap

all: $(PROGS)

$(PROGS): %: %.o
	$(CC) $(LDFLAGS) -o $@@ $< $(LPATH)

%.o: %.c $(INCS)
	$(CC) $(CFLAGS) -c $< -o $@@

install: all
	mkdir -p $(BINDIR)
	for p in $(PROGS) ; do \
		install -s -g root -o root -m 0111 $$p $(BINDIR) ; \
	done

clean:
	rm -f *~ core *.o $(PROGS)
@


1.2
log
@update with zefram's patches
@
text
@d3 3
d28 4
a31 2
	mkdir -p $(FAKEROOT)/bin
	install -s -g root -o root -m 0111 $(PROGS) $(BINDIR)
@


1.1
log
@Initial revision
@
text
@d3 2
d6 4
d14 1
a14 3
PROGS=getcap # setcap

export CFLAGS =-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH)
d18 2
a19 2
getcap: getcap.o
	$(CC) -o $@@ $< $(LPATH)
d26 1
a26 2
	strip $(PROGS)
	install -g root -o root -m 0111 $(PROGS) $(FAKEROOT)/bin
@
