summaryrefslogtreecommitdiff
path: root/example/Makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-24 12:38:03 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-24 12:38:03 +0000
commit376a0e0cc4c3deef4bbea734761ed2cc868d2e7e (patch)
treed6a82488d8403f400035e5acee55cd87afde05ac /example/Makefile
parent527c18b061466a7d0ebde53e761d94775ebc8324 (diff)
downloadbuildsystem-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/Makefile')
-rw-r--r--example/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/example/Makefile b/example/Makefile
new file mode 100644
index 0000000..ed757c7
--- /dev/null
+++ b/example/Makefile
@@ -0,0 +1,20 @@
+# Define the component name
+COMPONENT := foo
+# And the component type
+COMPONENT_TYPE := lib-static
+# Set the executable extension
+EXEEXT :=
+# And the library extension
+LIBEXT := .a
+# Define our target platform
+TARGET := linux
+
+# We're using a modern GCC, so can compile and generate dependencies together
+CC_CAN_BUILD_AND_DEP := yes
+
+# Grab the core makefile
+include build/makefiles/Makefile.top
+
+# Add extra install rules for our pkg-config control file and the library itself
+INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
+INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)