blob: 9e5fe4e1031a2174f3cf407b14e0e140299ffde7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Makefile for busybox
#
# Copyright (C) 2018 by R M Yorston <rmy@pobox.com>
#
# Licensed under GPLv2, see file LICENSE in this source tree.
obj-y :=
obj-$(CONFIG_FEATURE_RESOURCES) += resources.o
obj-$(CONFIG_FEATURE_RESOURCES) += dummy.o
# return commit level if available or 0
bb_level = $(or $(word 2,$(subst -, ,$1)),0)
WRFLAGS := -D"BB_VER=$(BB_VER)" \
-D"BB_VERSION=$(VERSION)" -D"BB_PATCHLEVEL=$(PATCHLEVEL)" \
-D"BB_SUBLEVEL=$(SUBLEVEL)" \
-D"BB_EXTRAVERSION=$(call bb_level,$(EXTRAVERSION))" \
--include-dir=$(objtree)/include --include-dir=$(objtree)/win32/resources
quiet_cmd_windres = WINDRES $@
cmd_windres = $(WINDRES) $(WRFLAGS) $< $@
%.o: %.rc FORCE
$(call if_changed,windres)
win32/resources/resources.o: win32/resources/resources.rc .config
win32/resources/resources.o: win32/resources/aterm.ico win32/resources/sterm.ico
|