swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Add GNU Makefiles for building on Unix #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patch adds GNU makefiles for easy building of Recast and Detour on 
Unix-based systems, especially Linux. For building RecastDemo, it is assumed 
that SDL, Mesa3D and pkg-config are installed (which is the case on most Linux 
distributions).

Original issue reported on code.google.com by denis.a....@gmail.com on 22 Oct 2010 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
I was not able to run the patch (weird since, I'm only one revision ahead, and 
did not change SlideShow.cpp).

I would like all the build related stuff (including obj files and stuff) to be 
generated inside the recast demo build or bin directory. From what I figured 
out from the makefiles, it will create a bin dir per project.

I have earlier tried to use cmake and premake and have got few implementations 
of those too. But so far I have failed to make them work on my machine, so that 
has prevented me to push it any further. Did I mention that I have zero 
attention span for makefile tinkering? ;)

Original comment by memono...@gmail.com on 23 Oct 2010 at 10:06

GoogleCodeExporter commented 9 years ago
I updated the patch to generate all files in RecastDemo/Bin. I also used some 
GNU-Make-fu to make adding and modifying targets simple as possible; every 
target (that is, Recast, Detour, DebugUtils and RecastDemo) has a separate 
makefile named <target-name>.mk in RecastDemo/Build/GNUMake now which only 
requires you to set some variables (SOURCES, HEADERS, and CPPFLAGS / LDFLAGS / 
LIBS if needed) and include the right "worker" makefile (Library.mk, 
HelperLibrary.mk or Program.mk). Hope this helps
you keep makefile tinkering to a minimum. ;)

Original comment by denis.a....@gmail.com on 23 Oct 2010 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I wish I was able to test the makefile locally as I change things. 
Anyways, I checked them in.

Oh, one more wish... I wish the .o files would not go to bin, but some temp 
folder under GNUMake perhaps.

Original comment by memono...@gmail.com on 24 Oct 2010 at 11:44

GoogleCodeExporter commented 9 years ago
Great! The attached patch change the output path of the .o files to 
RecastDemo/Build/GNUMake/Objects.

Original comment by denis.a....@gmail.com on 24 Oct 2010 at 12:49

Attachments:

GoogleCodeExporter commented 9 years ago
Checked in R247. I'll mark this as fixed now.

Original comment by memono...@gmail.com on 24 Oct 2010 at 1:23