# $Id$ # # Boiler plate makefile # # Needs to be included in a toplevel makefiles, which defines # the following variables: # # srcdir # prefix # CC # CFLAGS # LDFLAGS # PKGCONFIG # WINDRES # ABI_VERSION=$(shell pkg-config --modversion hpgs | sed 's%\.[0-9]*$$%%') CFLAGS+=-DHPGS_BUILD_PLUGIN ARTIFACT=hpgsjsplugin NODEVRULES=1 EXTPKGS=hpgs INCLUDES=-I$(srcdir)/../hpgsjs LD=$(CC) LIBS=-L../hpgsjs -lhpgsjs HEADERS= HEADERDIR= SOURCES=hpgsplugin.c include /usr/share/pba-cbs/mk/main-sharedlib.mk ifneq ($(WINDRES),) TARGET=hpgsjsplugin.$(ABI_VERSION).dll BINSUBDIR=lib/hpgs else TARGET=hpgsjsplugin.so.$(ABI_VERSION) ifeq ($(ARCHLIBSUBDIR),) LIBSUBDIR=lib/hpgs else LIBSUBDIR=$(ARCHLIBSUBDIR)/hpgs endif endif