Revision 22686,
735 bytes
checked in by ghudson, 17 years ago
(diff) |
* debathena/debathena: Snapshot debathena package sources from
/mit/debathena/packages/debathena.
|
Rev | Line | |
---|
[22686] | 1 | INSTALL = install |
---|
| 2 | CC = gcc |
---|
| 3 | CFLAGS = -O2 -Wall |
---|
| 4 | LD = ld |
---|
| 5 | |
---|
| 6 | ALL_CFLAGS = $(CFLAGS) -fPIC |
---|
| 7 | ALL_CPPFLAGS = $(CPPFLAGS) |
---|
| 8 | ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x |
---|
| 9 | ALL_LDLIBS = $(LDLIBS) |
---|
| 10 | |
---|
| 11 | ALL_LDFLAGS += -L/usr/lib/afs |
---|
| 12 | ALL_LDLIBS += -lprot -lauth -lrxkad -lubik -lsys -lrx -llwp -lafsutil |
---|
| 13 | |
---|
| 14 | all: pam_athena_locker.so linktest |
---|
| 15 | |
---|
| 16 | pam_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 | |
---|
| 22 | linktest: pam_athena_locker.so |
---|
| 23 | $(LD) --entry=0 -o /dev/null $^ -lpam |
---|
| 24 | |
---|
| 25 | install: 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 | |
---|
| 29 | clean: |
---|
| 30 | rm -f *.so *.o |
---|
| 31 | |
---|
| 32 | .PHONY: all linktest install clean |
---|
Note: See
TracBrowser
for help on using the repository browser.