Files
freeipa/ipa-server/ipa-kpasswd/Makefile
Karl MacMillan d2a19b2009 Karl MacMillan wrote:
> > This largish patch makes the build and installation work on 64bit
> > machines. The only catch here is that to get a 64bit build you need to
> > set LIBDIR on make:
> >
> > make install LIBDIR=/usr/lib64
> >
> > The spec file does this correctly. I couldn't find any reliable way to
> > guess this that works both on real systems and in the almost entirely
> > empty rpm build root (you can't, for example, check for the existence
> > of /usr/lib64).
-

24 lines
411 B
Makefile

include ../Makefile.common
LDFLAGS +=-lkrb5 -llber -lldap
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
all: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o ipa_kpasswd
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
install:
echo $(SBINDIR)
-mkdir -p $(SBINDIR)
install -m 755 ipa_kpasswd $(SBINDIR)
-mkdir -p $(INITDIR)
install -m 755 ipa-kpasswd.init $(INITDIR)/ipa-kpasswd
clean:
rm -f *.o
rm -f ipa_kpasswd
rm -f *~