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