summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile
blob: 034b8e60bd01073a59eebf312e3eb00bb98187be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
include ../../Makefile.common

SONAME = libipa_pwd_extop.so
LDFLAGS += -lkrb5 -llber -lldap -llber -lssl
CFLAGS += -I/usr/include/$(DIRSRV) -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -fPIC -DPIC

OBJS = $(patsubst %.c,%.o,$(wildcard *.c))

all: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -Wl,-soname -Wl,$(SONAME) -shared -o $(SONAME)

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

install:
	mkdir -p $(PLUGINDIR); \
	install -m 644 $(SONAME) $(PLUGINDIR); \
	install -m 644 *.ldif $(SHAREDIR)

clean:
	rm -f *.o
	rm -f $(SONAME)
	rm -f *~