Files
mtkports/dev-libs/libnsutils/Makefile
T

31 lines
890 B
Makefile

# libnsutils for MontaukOS
#
# Upstream: https://github.com/netsurf-browser/libnsutils (official mirror of
# git.netsurf-browser.org) (submodule at
# upstream/, pinned, no local patches).
#
# Assorted small utilities (time, base64) shared across NetSurf.
# A hard requirement of the browser core.
UPSTREAM := upstream
PORT_NAME := libnsutils
PORT_LIB := 1
PORT_ARCHIVE := libnsutils.a
PORT_PC_IN := $(UPSTREAM)/libnsutils.pc.in
PORT_PC_VERSION := 0.1.1
PORT_HEADER_ROOT := $(UPSTREAM)/include
PORT_HEADERS := $(shell find $(UPSTREAM)/include -name '*.h' 2>/dev/null)
include ../../mk/port.mk
.PHONY: all clean
all: install-lib
$(PORT_ARCHIVE): $(shell find $(UPSTREAM)/src $(UPSTREAM)/include -name '*.c' -o -name '*.h' 2>/dev/null)
$(call ns_build,$(UPSTREAM),nsutils)
clean: clean-lib
@$(call ns_clean,$(UPSTREAM))
rm -rf $(UPSTREAM)/$(NS_BUILDDIR)