Johann 'Myrkraverk' Oskarsson
2018-04-21 04:57:11 UTC
Hi all,
I've gotten to the stage in my OpenSSL port where the the makefile is
trying to build the first library.
The typical generated make file rule is something like
$(O_CRYPTO): $(CRYPTOOBJ)
$(RM) $(O_CRYPTO)
$(MKLIB) file $(O_CRYPTO) $(CRYPTOOBJ)
$(RANLIB) $(O_CRYPTO)
where I have added the "file" directive in the make file generator.
However, if I just add the "name" directive for Wlink before the
objects, how do I make it comma separated, as I understand the Wlink
manual to require?
Note: I can easily remove the $(RM) and $(RANLIB) lines, by editing the
generator; a perl script. I am not so sure I can easily make it build
a comma separated list directly in the make file since it just generates
variable expansions, like you see above.
Is this simpler to do with owcc? Right now I'm attempting to build a
static library, and not a DLL on OS/2. Can I create .LIB files with
owcc?
Does Wmake have any magic I can use to convert the space separated
objects into a comma separated list?
Right now I'm trying to get a feel for my options, about how I can
do this with OpenWatcom, without requiring external tools. I have
not seen anything immediately obvious to use, in the Wmake, Wlink
and owcc manuals.
I've gotten to the stage in my OpenSSL port where the the makefile is
trying to build the first library.
The typical generated make file rule is something like
$(O_CRYPTO): $(CRYPTOOBJ)
$(RM) $(O_CRYPTO)
$(MKLIB) file $(O_CRYPTO) $(CRYPTOOBJ)
$(RANLIB) $(O_CRYPTO)
where I have added the "file" directive in the make file generator.
However, if I just add the "name" directive for Wlink before the
objects, how do I make it comma separated, as I understand the Wlink
manual to require?
Note: I can easily remove the $(RM) and $(RANLIB) lines, by editing the
generator; a perl script. I am not so sure I can easily make it build
a comma separated list directly in the make file since it just generates
variable expansions, like you see above.
Is this simpler to do with owcc? Right now I'm attempting to build a
static library, and not a DLL on OS/2. Can I create .LIB files with
owcc?
Does Wmake have any magic I can use to convert the space separated
objects into a comma separated list?
Right now I'm trying to get a feel for my options, about how I can
do this with OpenWatcom, without requiring external tools. I have
not seen anything immediately obvious to use, in the Wmake, Wlink
and owcc manuals.
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk