Skip to content
Snippets Groups Projects
Commit 2c05a0cf authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Support for auto-generated module.pmod.in added.

Rev: src/modules/dynamic_module_makefile.in:1.45
Rev: src/modules/static_module_makefile.in:1.39
parent 068f2f9b
No related branches found
No related tags found
No related merge requests found
#
# $Id: dynamic_module_makefile.in,v 1.44 1998/09/20 08:30:42 hubbe Exp $
# $Id: dynamic_module_makefile.in,v 1.45 1998/10/28 22:54:08 marcus Exp $
#
......@@ -27,7 +27,7 @@ dummy: $(DUMMY) linker_options modlist_headers modlist_segment module.so
@tmp="$(INSTALL_NAME)" ; \
if test x$$tmp = x ; then tmp="$(MODNAME)"; else :; fi ;\
$(INSTALL) module.so $(TMP_LIBDIR)/modules/$$tmp.so ;\
if [ -f $(SRCDIR)/module.pmod.in ]; then sed -e "s/@module@/\"$$tmp\"/" <$(SRCDIR)/module.pmod.in >$(TMP_LIBDIR)/modules/$$tmp.pmod ; else :; fi
if [ -f $(SRCDIR)/module.pmod.in ]; then sed -e "s/@module@/\"$$tmp\"/" <$(SRCDIR)/module.pmod.in >$(TMP_LIBDIR)/modules/$$tmp.pmod ; else if [ -f ./module.pmod.in ]; then sed -e "s/@module@/\"$$tmp\"/" <./module.pmod.in >$(TMP_LIBDIR)/modules/$$tmp.pmod; else :; fi; fi
linker_options: Makefile
echo "$(LINKER_OPTIONS)" >linker_options
......
#
# $Id: static_module_makefile.in,v 1.38 1998/10/21 19:54:44 hubbe Exp $
# $Id: static_module_makefile.in,v 1.39 1998/10/28 22:54:10 marcus Exp $
#
......@@ -64,8 +64,12 @@ config.status: $(SRCDIR)/configure
module.pmod: Makefile
if [ -f $(SRCDIR)/module.pmod.in ]; then \
sed -e "s/@module@/_static_modules.$(MODNAME)/" <$(SRCDIR)/module.pmod.in >module.pmod ;\
else \
if [ -f ./module.pmod.in ]; then \
sed -e "s/@module@/_static_modules.$(MODNAME)/" <./module.pmod.in >module.pmod ;\
else \
echo >module.pmod "inherit _static_modules.$(MODNAME);" ;\
fi \
fi
module.a: $(OBJS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment