#ifndef FOO_H #define FOO_H bool isGreater(int a, int b); #endif
#include "foo.H" bool isGreater(int a, int b) { return (a > b); }
PROJECT_NAME=foo OBJDIR=obj H=foo.H SRC=foo.cpp # by default, build all versions of the library all: libg libo libp # rule to compile the debug version debug: libg # rule to compile the optimized version opt: libo # rule to compile the profiling version prof: libp include $(G)/lib/Make.gfxtools.rules -include Makefile.depend