| www.delorie.com/archives/browse.cgi | search |
| From: | Ray Jahn <rjahn1 AT pobox DOT srl DOT ford DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | building archives with MINGW32 2.8.1 |
| Date: | Wed, 03 Jun 1998 17:47:49 -0400 |
| Organization: | Ford Motor Company |
| Lines: | 44 |
| Message-ID: | <3575C485.6808@pobox.srl.ford.com> |
| Reply-To: | rjahn1 AT pobox DOT srl DOT ford DOT com |
| NNTP-Posting-Host: | dhcp45_41.srl.ford.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I need help on building library archives. I could not figure out
the correct syntax in the makefile for MINGW32 2.8.1. Short test
files "Makefile" and "tst.cc" are included as examples.
For MINGW32 2.8.1 (based on GNU GCC 2.8.1)
make mingw32.a stops after building tst.o
make djgpp.a no rule to make target .....
For DJGPP 2.01 (based on GNU GCC 2.8.1)
make djgpp.a archive is built
Is there a way to maintain a single version of makefile acceptable
to both DJGPP and MINGW32 ? Your advice and pointers are appreciated.
Reply by e-mail is preferable, if possible. Thanks.
Ray rjahn1 at ford dot com
--- Makefile begin
# MINGW32 version
mingw32.a: tst.o
# DJGPP version
djgpp.a: djgpp.a(tst.o)
--- Makefile end
--- tst.cc begin
int
tst_00( void )
{
return 0;
}
int
tst_01( int arg )
{
return arg++;
}
--- tst.cc end
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |