]> andersk Git - nss_nonlocal.git/blame - Makefile.in
Autoheaderfiscate.
[nss_nonlocal.git] / Makefile.in
CommitLineData
e98810bb
AK
1prefix = @prefix@
2exec_prefix = @exec_prefix@
3libdir = @libdir@
f6903667 4
e98810bb
AK
5INSTALL = @INSTALL@
6CC = @CC@
7
8CFLAGS = @CFLAGS@
9CPPFLAGS = @CPPFLAGS@
10LDFLAGS = @LDFLAGS@
11LIBS = @LIBS@
f6903667
AK
12
13ALL_CFLAGS = $(CFLAGS) -fPIC
dde28c20 14ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x
f6903667
AK
15
16all: libnss_nonlocal.so.2 linktest
17
4a07bbc2
AK
18OBJS = nonlocal-passwd.o nonlocal-group.o nonlocal-shadow.o
19
20libnss_nonlocal.so.2: $(OBJS) libnss_nonlocal.map
e98810bb 21 $(CC) -o $@ $(CFLAGS) $(ALL_LDFLAGS) -Wl,-soname,$@ -Wl,--version-script=libnss_nonlocal.map $(OBJS) $(LIBS)
f6903667
AK
22
23%.o: %.c
24 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $<
25
26nonlocal-passwd.o: nonlocal-passwd.c nsswitch-internal.h nonlocal.h
27nonlocal-group.o: nonlocal-group.c nsswitch-internal.h nonlocal.h
28nonlocal-shadow.o: nonlocal-shadow.c nsswitch-internal.h nonlocal.h
29
30linktest: libnss_nonlocal.so.2
e98810bb 31 $(CC) $(CFLAGS) $(LDFLAGS) -nostdlib -Wl,--entry=0 -o /dev/null $^
f6903667
AK
32
33install: libnss_nonlocal.so.2
34 $(INSTALL) -d $(DESTDIR)$(libdir)
35 $(INSTALL) -m a+r,u+w $< $(DESTDIR)$(libdir)/
36
37clean:
4a07bbc2 38 rm -f *.so.* *.o
f6903667
AK
39
40.PHONY: all linktest install clean
This page took 0.044927 seconds and 5 git commands to generate.