forked from ibphoenix/tomsfastmath
clean-up installation process
This commit is contained in:
parent
71de1a493d
commit
6c1b3e2424
@ -55,25 +55,9 @@ HEADERS=src/headers/tfm_private.h $(HEADERS_PUB)
|
|||||||
#END_INS
|
#END_INS
|
||||||
|
|
||||||
|
|
||||||
ifndef LIBPATH
|
DESTDIR ?= /usr/local
|
||||||
LIBPATH=/usr/lib
|
LIBPATH ?= $(DESTDIR)/lib
|
||||||
endif
|
INCPATH ?= $(DESTDIR)/include
|
||||||
|
|
||||||
ifndef INCPATH
|
|
||||||
INCPATH=/usr/include
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef INSTALL_GROUP
|
|
||||||
GROUP=wheel
|
|
||||||
else
|
|
||||||
GROUP=$(INSTALL_GROUP)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef INSTALL_USER
|
|
||||||
USER=root
|
|
||||||
else
|
|
||||||
USER=$(INSTALL_USER)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef LIBNAME
|
ifndef LIBNAME
|
||||||
LIBNAME=libtfm.la
|
LIBNAME=libtfm.la
|
||||||
@ -94,15 +78,15 @@ $(LIBNAME): $(OBJECTS)
|
|||||||
libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) $(LOBJECTS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols
|
libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) $(LOBJECTS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
install -d $(LIBPATH)
|
||||||
libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
libtool --mode=install install $(LIBNAME) $(LIBPATH)/$(LIBNAME)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
install -d $(INCPATH)
|
||||||
install -g $(GROUP) -o $(USER) $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
|
install $(HEADERS_PUB) $(INCPATH)
|
||||||
|
|
||||||
HEADER_FILES=$(notdir $(HEADERS_PUB))
|
HEADER_FILES=$(notdir $(HEADERS_PUB))
|
||||||
uninstall:
|
uninstall:
|
||||||
libtool --mode=uninstall rm $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
libtool --mode=uninstall rm $(LIBPATH)/$(LIBNAME)
|
||||||
rm $(HEADER_FILES:%=$(DESTDIR)$(INCPATH)/%)
|
rm $(HEADER_FILES:%=$(INCPATH)/%)
|
||||||
|
|
||||||
mtest/mtest: mtest/mtest.c
|
mtest/mtest: mtest/mtest.c
|
||||||
cd mtest ; make mtest
|
cd mtest ; make mtest
|
||||||
|
Loading…
Reference in New Issue
Block a user