source: trunk/debathena/debathena/libpam-krb524/Makefile @ 22686

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