diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-24 12:38:03 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-24 12:38:03 +0000 |
commit | 376a0e0cc4c3deef4bbea734761ed2cc868d2e7e (patch) | |
tree | d6a82488d8403f400035e5acee55cd87afde05ac /example/src1 | |
parent | 527c18b061466a7d0ebde53e761d94775ebc8324 (diff) | |
download | buildsystem-376a0e0cc4c3deef4bbea734761ed2cc868d2e7e.tar.gz buildsystem-376a0e0cc4c3deef4bbea734761ed2cc868d2e7e.tar.bz2 |
An example buildsystem, using the core makefiles
svn path=/trunk/tools/buildsystem/; revision=6832
Diffstat (limited to 'example/src1')
-rw-r--r-- | example/src1/Makefile | 7 | ||||
-rw-r--r-- | example/src1/foo.c | 7 | ||||
-rw-r--r-- | example/src1/foo.h | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/example/src1/Makefile b/example/src1/Makefile new file mode 100644 index 0000000..f986d31 --- /dev/null +++ b/example/src1/Makefile @@ -0,0 +1,7 @@ +# Sources in this directory +DIR_SOURCES := foo.c +# Items to install from this directory +DIR_INSTALL_ITEMS := /include:foo.h + +# Grab the core makefile +include build/makefiles/Makefile.subdir diff --git a/example/src1/foo.c b/example/src1/foo.c new file mode 100644 index 0000000..7c9cb25 --- /dev/null +++ b/example/src1/foo.c @@ -0,0 +1,7 @@ +#include "foo.h" + +int foo(void) +{ + return -1; +} + diff --git a/example/src1/foo.h b/example/src1/foo.h new file mode 100644 index 0000000..5deb13c --- /dev/null +++ b/example/src1/foo.h @@ -0,0 +1,6 @@ +#ifndef foo_h_ +#define foo_h_ + +extern int foo(void); + +#endif |