From: David B. <dav...@gm...> - 2011-07-09 22:07:04
|
Hi, >> * I have added the new source files in src/bayesian. How do I include them >> in the build? I have not worked with GNU autotools and cmake before. > > I don't really know cmake. With automake, there's a whole bunch of > recursive directory support, but I think that doesn't apply here. The primary build system for tuxmath is automake, but we try to support both. The cmake build has been used for some Mac releases in the past, but everything else (source tarballs, distro packaging, windows binaries) is done with automake. For automake, the quickest thing is just to add the files to the tuxmath_SOURCES (for *.c files) and EXTRA_DIST (for other files) variables in src/Makefile.am with relative paths, e.g.: tuxmath_SOURCES = tuxmath.c \ setup.c \ titlescreen.c \ menu.c \ menu_lan.c \ game.c \ factoroids.c \ fileops_media.c \ options.c \ credits.c \ highscore.c \ audio.c \ network.c \ mathcards.c \ campaign.c \ multiplayer.c \ fileops.c \ SDL_rotozoom.c \ lessons.c \ server.c \ bayesian/bayesian_network.c \ and so forth. The recursive way, which is what is usually done, is to create a SUBDIRS = bayesian variable in src/Makefile.am, and create src/bayesian/Makefile.am to handle the new directory. I know less about cmake, but AFAIK the process is very similar. -- David Bruce For all your software needs, visit The Apt Store: deb http://ftp.us.debian.org/debian stable main |