I don't know how to do this portably.
To make the makefile portable, it seems all you need to do is use the default action. Change
libmylib$(LIB_EXT): $(O_FILES) $(AR) cr libmylib$(LIB_EXT) $(O_FILES) $(RANLIB) libmylib$(LIB_EXT)
to
libmylib$(LIB_EXT): $(O_FILES)
In reply to Re^2: stuck in perlxstut, example 4 (portability)
by ikegami
in thread stuck in perlxstut, example 4
by fugazi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |