source: trunk/debathena/debathena/libnss-afspag/Makefile @ 22686

Revision 22686, 591 bytes checked in by ghudson, 17 years ago (diff)
* debathena/debathena: Snapshot debathena package sources from /mit/debathena/packages/debathena.
Line 
1exec_prefix = /
2libdir = $(exec_prefix)/lib
3
4INSTALL = install
5CC = gcc
6CFLAGS = -O2 -Wall
7LD = ld
8
9ALL_CFLAGS = $(CFLAGS) -fPIC
10ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x
11
12all: libnss_afspag.so.2 linktest
13
14libnss_afspag.so.2: nss_afspag.o
15        $(CC) -o $@ $(ALL_LDFLAGS) -Wl,-soname,$@ $^ $(LOADLIBES) $(LDLIBS)
16
17%.o: %.c
18        $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $<
19
20linktest: libnss_afspag.so.2
21        $(LD) --entry=0 -o /dev/null $^
22
23install: libnss_afspag.so.2
24        $(INSTALL) -d $(DESTDIR)$(libdir)
25        $(INSTALL) -m a+r,u+w $< $(DESTDIR)$(libdir)/
26
27clean:
28        rm -f *.so.* *.o
29
30.PHONY: all linktest install clean
Note: See TracBrowser for help on using the repository browser.