Simple Makefile help

Richard Boehme rboehme at gmail.com
Sun Mar 4 19:03:07 CET 2007


Hi there. I've just realized that I forgot how to write a makefile.
What would one look like that had targets using gcc for:

all:

engine:

  builds all the files in the "src/engine" directory into a .so file
for linux, and .so for OpenMoko

omgui:
  builds all the files in the "src/OpenMokoGUI" dir into an executable
(uses the "engine" lib)

install
  copies files to install location, files in a "src/web/" directory to
Apache for installation?



Also, is there a better alternative to Make for compiling C++ programs
that will work with OM?

Thanks.

Richard



More information about the openmoko-devel mailing list