summaryrefslogtreecommitdiff
path: root/example/Makefile
blob: ed757c7b2a8cb11f495ed3478d1b4a72737901ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)