Makefile.darwin-lib revision c13351f6c53f175696044c0203bb3009af606c64
1e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# 2e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# This is a Makefile stub which handles the creation of Darwin BSD shared 3e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# libraries. 4e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# 5aa75ecccab67ea7428fc19c66e80a28fb1ca941fTheodore Ts'o# In order to use this stub, the following makefile variables must be defined. 6e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# 7e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# BSDLIB_VERSION = 1.0 8e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# BSDLIB_IMAGE = libce 9e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# BSDLIB_MYDIR = et 10e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# BSDLIB_INSTALL_DIR = $(SHLIBDIR) 11e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o# 12e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 1342c0b61ca58ddc64ede08c0c02ebe3f9eb5b9570Theodore Ts'oall:: image 14e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 153f546fcc27e9bfca8d365c4d78c6e6c99ca32512Theodore Ts'oreal-subdirs:: Makefile 16c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(E) " MKDIR pic" 17c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) mkdir -p pic 18e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 19e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'oBSD_LIB = $(BSDLIB_IMAGE).$(BSDLIB_VERSION).dylib 20434661f8d5efd0999e586dfbf73b319f070bc20bTheodore Ts'oBSDLIB_PIC_FLAG = -fPIC 21e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 22e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'oimage: $(BSD_LIB) 23e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 24e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o$(BSD_LIB): $(OBJS) 25c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(E) " GEN_BSD_SOLIB $(BSD_LIB)" 26c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) (cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \ 27e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o -flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS)) 28c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) $(MV) pic/$(BSD_LIB) . 29c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) $(RM) -f ../$(BSD_LIB) 30c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) $(LN) $(BSD_LIB) ../$(BSD_LIB) 31c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) $(LN) ../$(BSD_LIB) ../$(BSDLIB_IMAGE).dylib 32e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 33e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'oinstall-shlibs install:: $(BSD_LIB) 34c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(E) " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)" 35c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o $(Q) $(INSTALL_PROGRAM) $(BSD_LIB) \ 36e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB) 37c13351f6c53f175696044c0203bb3009af606c64Theodore Ts'o -$(Q) $(LDCONFIG) 38522798d3428807800d8471f5ac3050b82aa9de97Theodore Ts'o 39522798d3428807800d8471f5ac3050b82aa9de97Theodore Ts'oinstall-strip: install 40522798d3428807800d8471f5ac3050b82aa9de97Theodore Ts'o 41522798d3428807800d8471f5ac3050b82aa9de97Theodore Ts'oinstall-shlibs-strip: install-shlibs 42e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 43e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'ouninstall-shlibs uninstall:: 44e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB) 45e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o 46e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'oclean:: 47e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(RM) -rf pic 48e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(RM) -f $(BSD_LIB) 49e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(RM) -f ../$(BSD_LIB) 50e71d87317ac095fa08079f0cc9040da16952eb93Theodore Ts'o $(RM) -f ../$(BSDLIB_IMAGE).dylib 51