mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove all dependencies on mhash Remove code optimizatrion from Makefiles, right now these are developers targeted builds, so it is better to have debugging symbols around
26 lines
473 B
Makefile
26 lines
473 B
Makefile
PREFIX ?= $(DESTDIR)/usr
|
|
SBIN = $(PREFIX)/sbin
|
|
INITDIR = $(DESTDIR)/etc/rc.d/init.d
|
|
|
|
LDFLAGS +=-lkrb5 -llber -lldap
|
|
CFLAGS ?= -g -Wall -Wshadow
|
|
|
|
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
|
|
|
|
all: $(OBJS)
|
|
$(CC) $(LDFLAGS) $(OBJS) -o ipa_kpasswd
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
install:
|
|
-mkdir -p $(SBIN)
|
|
install -m 755 ipa_kpasswd $(SBIN)
|
|
-mkdir -p $(INITDIR)
|
|
install -m 755 ipa-kpasswd.init $(INITDIR)/ipa-kpasswd
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f ipa_kpasswd
|
|
rm -f *~
|