diff options
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index cfb6fc4..805a218 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -14,6 +14,7 @@ INSTALL_SCRIPT = $(INSTALL) -m 755 INSTALL_BIN = /usr/bin/install -c iprefix = @prefix@ iexec_prefix = @exec_prefix@ +PLUSFLAGS = @LANPLUS_CFLAGS@ sbindir = $(iexec_prefix)/sbin mandir = $(iprefix)/man @@ -32,8 +33,10 @@ all: else cp -f libipmiapi64.a.redhat libipmiapi.a; fi \ else cp -f libipmiapi32.a libipmiapi.a; fi \ fi - cd lanplus; make clean; make - cp -f lanplus/libipmi_lanplus.a . + if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \ + cd lanplus; make clean; make ; \ + pwd; cp -f libipmi_lanplus.a .. ; \ + fi clean: rm -f libipmiapi.a lib*_lanplus.a lib*_lanplus.so |