2013-03-11 21:50:12 +04:00
|
|
|
# utils sources
|
|
|
|
|
2016-08-07 17:22:13 +03:00
|
|
|
S_UTILS := \
|
|
|
|
bloom.c \
|
|
|
|
corestrings.c \
|
|
|
|
file.c \
|
|
|
|
filename.c \
|
|
|
|
filepath.c \
|
2020-02-23 19:23:20 +03:00
|
|
|
hashmap.c \
|
2016-08-07 17:22:13 +03:00
|
|
|
hashtable.c \
|
|
|
|
idna.c \
|
|
|
|
libdom.c \
|
|
|
|
log.c \
|
|
|
|
messages.c \
|
2020-04-07 23:05:14 +03:00
|
|
|
nscolour.c \
|
2016-08-07 17:22:13 +03:00
|
|
|
nsoption.c \
|
|
|
|
punycode.c \
|
2020-02-23 19:06:52 +03:00
|
|
|
ssl_certs.c \
|
2016-08-07 17:22:13 +03:00
|
|
|
talloc.c \
|
|
|
|
time.c \
|
|
|
|
url.c \
|
|
|
|
useragent.c \
|
|
|
|
utf8.c \
|
|
|
|
utils.c
|
2013-03-11 21:50:12 +04:00
|
|
|
|
2013-05-17 14:40:43 +04:00
|
|
|
S_UTILS := $(addprefix utils/,$(S_UTILS))
|
2020-06-15 02:04:44 +03:00
|
|
|
|
2020-06-22 12:06:35 +03:00
|
|
|
|
|
|
|
# lib png build compiler flags
|
|
|
|
ifeq ($(HOST),OpenBSD)
|
|
|
|
BUILD_LIBPNG_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpng)
|
|
|
|
BUILD_LIBPNG_LDFLAGS += $(shell $(PKG_CONFIG) --libs libpng)
|
|
|
|
else
|
|
|
|
ifeq ($(HOST),FreeBSD)
|
|
|
|
BUILD_LIBPNG_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpng)
|
|
|
|
BUILD_LIBPNG_LDFLAGS += $(shell $(PKG_CONFIG) --libs libpng)
|
|
|
|
else
|
|
|
|
BUILD_LIBPNG_CFLAGS +=
|
|
|
|
BUILD_LIBPNG_LDFLAGS += -lpng
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Build tool to convert file to comiled data
|
2020-06-15 02:04:44 +03:00
|
|
|
#
|
|
|
|
$(TOOLROOT)/xxd: utils/xxd.c $(TOOLROOT)/created
|
|
|
|
$(VQ)echo "BUILD CC: $@"
|
|
|
|
$(Q)$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $< $(BUILD_LDFLAGS)
|
|
|
|
|
2020-06-22 12:06:35 +03:00
|
|
|
|
|
|
|
# Build tool to filter messages
|
2020-06-15 02:04:44 +03:00
|
|
|
#
|
|
|
|
$(TOOLROOT)/split-messages: utils/split-messages.c $(TOOLROOT)/created
|
|
|
|
$(VQ)echo "BUILD CC: $@"
|
2020-06-15 11:06:25 +03:00
|
|
|
$(Q)$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $< $(BUILD_LDFLAGS) -lz
|
2020-06-22 12:06:35 +03:00
|
|
|
|
|
|
|
|
|
|
|
# Build tool to convert image bitmaps to source code.
|
|
|
|
#
|
|
|
|
$(TOOLROOT)/convert_image: utils/convert_image.c $(TOOLROOT)/created
|
|
|
|
$(VQ)echo "BUILD CC: $@"
|
|
|
|
$(Q)$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_LIBPNG_CFLAGS) -o $@ $< $(BUILD_LDFLAGS) $(BUILD_LIBPNG_LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
# Build too to perform font conversion
|
|
|
|
$(TOOLROOT)/convert_font: utils/convert_font.c $(TOOLROOT)/created
|
|
|
|
$(VQ)echo "BUILD CC: $@"
|
|
|
|
$(Q)$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $<
|