summaryrefslogtreecommitdiff
path: root/example/Makefile
blob: 1591aa89c0b0cb675fad91cbb8b64eb2456d33a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Define the component name
COMPONENT := foo
# And the component type
COMPONENT_TYPE := lib-static
# Component version
COMPONENT_VERSION := 0.0.1

# Tooling
PREFIX ?= /opt/netsurf
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
include $(NSSHARED)/makefiles/Makefile.tools

# Grab the core makefile
include $(NSBUILD)/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)