# # Makefile for NetSurf ftlk target # # This file is part of NetSurf # # ---------------------------------------------------------------------------- # FLTK flag setup (using pkg-config) # ---------------------------------------------------------------------------- CXXFLAGS += -DFLTK_RESPATH=\"$(NETSURF_FLTK_RES_PATH)\" # fltk does not ship a pkg-config file, instead it has its own program FLTKCONFIG = fltk-config CXXFLAGS += $(shell $(FLTKCONFIG) --cxxflags) LDFLAGS += -lstdc++ $(shell $(FLTKCONFIG) --ldstaticflags) # --------------------------------------------------------------------------- # Target setup # --------------------------------------------------------------------------- # The binary target. EXETARGET := nsfltk # ---------------------------------------------------------------------------- # Source file setup # ---------------------------------------------------------------------------- # S_FRONTEND are sources purely for the FLTK frontend S_FRONTEND := main.cpp misc.cpp window.cpp fetch.cpp bitmap.cpp layout.cpp plotters.cpp resources.cpp # This is the final source build list # Note this is deliberately *not* expanded here as common and image # are not yet available SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_RESOURCE) $(S_FRONTEND)