source: trunk/debathena/debathena/libpam-athena-locker/Makefile @ 22686

Revision 22686, 735 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_CPPFLAGS = $(CPPFLAGS)
8ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x
9ALL_LDLIBS = $(LDLIBS)
10
11ALL_LDFLAGS += -L/usr/lib/afs
12ALL_LDLIBS += -lprot -lauth -lrxkad -lubik -lsys -lrx -llwp -lafsutil
13
14all: pam_athena_locker.so linktest
15
16pam_athena_locker.so: pam_athena_locker.o
17        $(CC) -o $@ $(ALL_LDFLAGS) $^ $(LOADLIBES) $(ALL_LDLIBS)
18
19%.o: %.c
20        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $<
21
22linktest: pam_athena_locker.so
23        $(LD) --entry=0 -o /dev/null $^ -lpam
24
25install: pam_athena_locker.so
26        $(INSTALL) -d $(DESTDIR)/lib/security
27        $(INSTALL) -m a+r,u+w pam_athena_locker.so $(DESTDIR)/lib/security/
28
29clean:
30        rm -f *.so *.o
31
32.PHONY: all linktest install clean
Note: See TracBrowser for help on using the repository browser.