59 lines · 1.8 KB · Makefile
RawDownload
#!/bin/make## Makefile for parserutils## Copyright 2009-2015 John-Mark Bell <jmb@netsurf-browser.org> # Component settingsCOMPONENT := parserutilsCOMPONENT_VERSION := 0.2.5# Default to a static libraryCOMPONENT_TYPE ?= lib-static # Setup the toolingPREFIX ?= /opt/netsurfNSSHARED ?= $(PREFIX)/share/netsurf-buildsysteminclude $(NSSHARED)/makefiles/Makefile.tools TESTRUNNER := $(PERL) $(NSTESTTOOLS)/testrunner.pl # Toolchain flagsWARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \	-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \	-Wmissing-declarations -Wnested-externs -pedantic# BeOS/Haiku standard library headers create warnings.ifneq ($(BUILD),i586-pc-haiku)  WARNFLAGS := $(WARNFLAGS) -Werrorendif CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \	-I$(CURDIR)/include/ -I$(CURDIR)/src \	$(WARNFLAGS) $(CFLAGS)ifneq ($(GCCVER),2)  CFLAGS := $(CFLAGS) -std=c99else  # __inline__ is a GCCism  CFLAGS := $(CFLAGS) -Dinline="__inline__"endif include $(NSBUILD)/Makefile.top # Extra installation rulesIs := include/parserutilsI := /$(INCLUDEDIR)/parserutilsINSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/errors.h;$(Is)/functypes.h;$(Is)/parserutils.h;$(Is)/types.h Is := include/parserutils/charsetI := /$(INCLUDEDIR)/parserutils/charsetINSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/codec.h;$(Is)/mibenum.h;$(Is)/utf16.h;$(Is)/utf8.h Is := include/parserutils/inputI := /$(INCLUDEDIR)/parserutils/inputINSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/inputstream.h Is := include/parserutils/utilsI := /$(INCLUDEDIR)/parserutils/utilsINSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/buffer.h;$(Is)/stack.h;$(Is)/vector.h INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.inINSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)