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