Date: Sun, 11 Sep 2005 12:14:49 -0300 From: Alejandro Pulver <alejandro@varnet.biz> To: questions@freebsd.org Subject: Help with Makefile Message-ID: <20050911121449.01a09558@phobos.mars.bsd>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello,
I am making a port of Quake III Arena SDK: it installs game sources,
tools to produce QVM files, and a Makefile.
The original game source comes with the "cons" building system and I am
trying to write a Makefile to replace it. I have troubles while
writting the Makefile.
Here is what I want to do:
* Use a directory for compiled/temporary/object files (e.g. "build").
* Dependency support (now targets are recreated all the time).
* Automatic dependency support (e.g. "mkdep").
* Handle the suffix problem when "qvm" and "so" targets are built at
the same time.
Here is the description of the build steps (see the Makefile for
implementation):
For building the shared object just compile the C sources listed in
(CGAME|GAME|UI)_SRCS_SO and put them together with "cc
-shared ..." (I think this could be handled with bsd.lib.mk).
For building the QVM you should first create bytecode files (assembly)
from the sources listed in (CGAME|GAME|UI)_SRCS_QVM with q3lcc (note
that there are also some .asm files listed in the sources - one per
module cgame, game and ui - that don't need to be modified), then
assemble all the produced files with q3asm.
Here is what I have (attached):
Makefile.bz2 - Last try.
Makefile.orig.bz2 - Previous try (uses a build directory but
doesn't handle dependencies and can't build qvm
and so at the same time - suffix problem).
Makefile.gnu.bz2 - Works fine, but it is for gmake (and for an
older version: 1.29h, this one is 1.32, however
the only change could be sources names/files).
quake3-sdk.tar.bz2 - Port that installs game source (where the
Makefile has to be put) and the tools.
Any help will be appreciated.
Thanks and Best Regards,
Ale
P.S.: I asked this question in ports@freebsd.org, but I think this
is the correct place to do it.
[-- Attachment #2 --]
BZh91AY&SY= _0]{VĿ`]yoZ0q_[ALSi hCF@(Кe= @h=@ h5= ʌ0 I$ޅ=&(z4dM
3I=& "@OS4~J<@z =FE@
#!D
dB PD3EUsBjaA ˦)G'MO"oρgI#k[bYƏţ`LO))>Pm\7@'9硑EFg-8eŚbۥ
=)i˪WuL2AI-1g;p3ůi7'/"%myq@Tg(M* 0SIEKUHA¬.2hh6h5,xWC(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