aboutsummaryrefslogtreecommitdiff
path: root/win32/resources/Kbuild.src
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-07-24 16:43:10 +0100
committerRon Yorston <rmy@pobox.com>2018-07-24 16:43:10 +0100
commit958ba292aab941d81b4d89dedc92ba78ace6b1ad (patch)
treef10caea34bb23a61be8de468a7e3f6fae16363bd /win32/resources/Kbuild.src
parent43dd125914c7cc4656cf06b23230031e3444c5ff (diff)
downloadbusybox-w32-958ba292aab941d81b4d89dedc92ba78ace6b1ad.tar.gz
busybox-w32-958ba292aab941d81b4d89dedc92ba78ace6b1ad.tar.bz2
busybox-w32-958ba292aab941d81b4d89dedc92ba78ace6b1ad.zip
win32: rename resource files
Since more than just icon resources are now provided give various files more appropriate names.
Diffstat (limited to 'win32/resources/Kbuild.src')
-rw-r--r--win32/resources/Kbuild.src30
1 files changed, 30 insertions, 0 deletions
diff --git a/win32/resources/Kbuild.src b/win32/resources/Kbuild.src
new file mode 100644
index 000000000..73fbfb7c7
--- /dev/null
+++ b/win32/resources/Kbuild.src
@@ -0,0 +1,30 @@
1# Makefile for busybox
2#
3# Copyright (C) 2018 by R M Yorston <rmy@pobox.com>
4#
5# Licensed under GPLv2, see file LICENSE in this source tree.
6
7obj-y :=
8
9obj-$(CONFIG_FEATURE_RESOURCES) += resources.o
10
11# return commit level if available or 0
12bb_level = $(or $(word 2,$(subst -, ,$1)),0)
13
14WRFLAGS := -D"KBUILD_STR(s)=\#s" -D"BB_VER=KBUILD_STR($(BB_VER))" \
15 -D"BB_VERSION=$(VERSION)" -D"BB_PATCHLEVEL=$(PATCHLEVEL)" \
16 -D"BB_SUBLEVEL=$(SUBLEVEL)" \
17 -D"BB_EXTRAVERSION=$(call bb_level,$(EXTRAVERSION))"
18
19quiet_cmd_windres = WINDRES $@
20 cmd_windres = $(WINDRES) $(WRFLAGS) $< $@
21
22%.o: %.rc FORCE
23 $(call if_changed,windres)
24
25win32/resources/resources.o: win32/resources/resources.rc .config
26win32/resources/resources.o: win32/resources/aterm.ico win32/resources/sterm.ico
27win32/resources/resources.o: win32/resources/busybox-w32.manifest
28
29win32/resources/busybox-w32.manifest: win32/resources/busybox-w32.manifest.src .config
30 @sed -b "s/VERSION/$(BB_VER)/" win32/resources/busybox-w32.manifest.src >win32/resources/busybox-w32.manifest