mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
> > 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).
-
26 lines
521 B
Makefile
26 lines
521 B
Makefile
include ../../Makefile.common
|
|
|
|
SONAME = libipa-dna-plugin.so
|
|
LDFLAGS += -llber
|
|
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 *~
|
|
|
|
|