# this uses libpf build flags from Makefile.defs # the install and clean targets are currently not used all: target include ../../Makefile.defs TARGET = ftgl.$(MODEXT) TARGET_DIR = $(PREFIX)/lib/pf/plugins # ftgl default install (including debian: just ftgl-dev package) # doesn't have a shared library. i have no idea why.. however, # building a pf plugin from a static library somehow doesn't include # the necessary objects. ld has to be convinced explicitly using # --whole-archive # the '--no-whole-archive' flag is necessary (see GNU ld manual page) LDFLAGS = $(LDFLAGS_MODULE) -Wl,-whole-archive $(shell pkg-config ftgl --libs) -Wl,-no-whole-archive $(LIBS) $(LDFLAGS_PF) # CFLAGS wont work here CPPFLAGS += $(shell pkg-config ftgl --cflags) MODULE=plugins/ftgl sources = ftgl.cc # for Makefile.rules CEXT = cc COMPILE_COMPONENT = $(CXX) COMPILE_TARGET = $(CXX) include $(BUILDDIR)/Makefile.rules