diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-06-22 10:06:35 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-06-22 22:45:10 +0100 |
commit | 54e06e7d582b36b8aca463cac5f63e0501c898dc (patch) | |
tree | 1be0b38860d452e5513d271c364c12faebd0ca83 /frontends/framebuffer/Makefile | |
parent | a27f5d32cd199845ae34ffc28d23ac6a17cbaa33 (diff) | |
download | netsurf-54e06e7d582b36b8aca463cac5f63e0501c898dc.tar.gz netsurf-54e06e7d582b36b8aca463cac5f63e0501c898dc.tar.bz2 |
move all the build tools to utils
move the source and make rules of the convert image and font tools
to the utils directory. This puts all the rules for build tools together.
Diffstat (limited to 'frontends/framebuffer/Makefile')
-rw-r--r-- | frontends/framebuffer/Makefile | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/frontends/framebuffer/Makefile b/frontends/framebuffer/Makefile index f4a7494e2..7408f0cbc 100644 --- a/frontends/framebuffer/Makefile +++ b/frontends/framebuffer/Makefile @@ -122,27 +122,10 @@ FB_IMAGE_throbber6 := throbber/throbber6.png FB_IMAGE_throbber7 := throbber/throbber7.png FB_IMAGE_throbber8 := throbber/throbber8.png -# local compiler flags -ifeq ($(HOST),OpenBSD) - BUILD_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpng) - BUILD_LDFLAGS += $(shell $(PKG_CONFIG) --libs libpng) -else - ifeq ($(HOST),FreeBSD) - BUILD_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpng) - BUILD_LDFLAGS += $(shell $(PKG_CONFIG) --libs libpng) - else - BUILD_CFLAGS += - BUILD_LDFLAGS += -lpng - endif -endif - -# Host tool to convert image bitmaps to source code. -# -# convert_image dependd on fb_bitmap.h so that if we change that +# make convert_image depend on fbtk.h so that if we change that # header, we get new images built. -$(TOOLROOT)/convert_image: $(TOOLROOT)/created $(FRONTEND_SOURCE_DIR)/convert_image.c $(FRONTEND_SOURCE_DIR)/fbtk.h - $(VQ)echo "BUILD CC: $@" - $(Q)$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $(FRONTEND_SOURCE_DIR)/convert_image.c $(BUILD_LDFLAGS) +$(TOOLROOT)/convert_image: $(FRONTEND_SOURCE_DIR)/fbtk.h + # 1: input file # 2: output file @@ -164,11 +147,6 @@ $(eval $(foreach V,$(filter FB_IMAGE_%,$(.VARIABLES)),$(call convert_image,$(FRO # Internal fonts to generate FB_FONT_internal_ns-sans := fonts/glyph_data -# Internal font conversion -$(TOOLROOT)/convert_font: $(TOOLROOT)/created $(FRONTEND_SOURCE_DIR)/convert_font.c - $(VQ)echo "BUILD CC: $@" - $(Q)$(BUILD_CC) -o $@ $(FRONTEND_SOURCE_DIR)/convert_font.c - # 1: input file # 2: output source code file # 3: output header file |