-
Notifications
You must be signed in to change notification settings - Fork 3
/
irix-common.mk
31 lines (20 loc) · 870 Bytes
/
irix-common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*-makefile-*- <-- an Emacs control
# See unix-common.mk for an explanation of this file. This file is
# analogous to unix-common.mk, but is for an Irix system.
SONAME = $(@:%.$(MAJ):%)
SHLIB_CMD = $(CCLD) $(LADD) $(LDFLAGS_SHLIB) -o $@ $^
SHLIB_LE_TARGETS = $(call shliblefn, $(SHARED_LIBS_TO_BUILD))
$(SHLIB_LE_TARGETS):%:%.$(MAJ)
rm -f $@
$(LN_S) $< $@
.PHONY: $(SHLIB_INSTALL_TARGETS)
.PHONY: install-shared-libraries
SHLIB_INSTALL_TARGETS = $(SHARED_LIBS_TO_INSTALL:%=%/install)
#SHLIB_INSTALL_TARGETS is like "libfoo/install libbar/install"
install-shared-libraries: $(SHLIB_INSTALL_TARGETS)
$(SHLIB_INSTALL_TARGETS):%/install:%.$(SHLIB_SUFFIX).$(MAJ)
# $< is a library file name, e.g. libfoo.so.3.1 .
$(INSTALL_SHLIB) $< $(DESTDIR)$(LIBINST_DIR)/$<
cd $(DESTDIR)$(LIBINST_DIR); \
rm -f $< $(<:%.$(MAJ)=%); \
$(LN_S) $< $(<:%.$(MAJ)=%)