summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile6
-rw-r--r--mdk-stage1/Makefile.common2
2 files changed, 4 insertions, 4 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index b170b73d3..381b4b172 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -42,7 +42,7 @@ INIT_DEFS += $(GLIBC_INCLUDES)
STAGE1_DEFS=-DDISABLE_KA
-INITOBJS = $(subst .c,.o,$(INITSRC))
+INITOBJS = $(INITSRC:.c=.o)
#- frontends
@@ -52,7 +52,7 @@ NEWT_FRONTEND_LIBS = -lnewt -lslang
STDIO_FRONTEND_SRC = stdio-frontend.c
STDIO_FRONTEND_LIBS =
-FRONTEND_OBJS = $(subst .c,.o,$($(F)_FRONTEND_SRC))
+FRONTEND_OBJS = $($(F)_FRONTEND_SRC:.c=.o)
FRONTEND_LINK = $(FRONTEND_OBJS) $($(F)_FRONTEND_LIBS)
@@ -87,7 +87,7 @@ STAGE1OBJS-NETWORK-STANDALONE = $(subst .c,-NETWORK-STANDALONE.o,$(STAGE1SRC) $(
NETWORK_STANDALONE_DEFS = -DDISABLE_CDROM -DDISABLE_DISK -DENABLE_NETWORK_STANDALONE -DDISABLE_KA
-STAGE1OBJS-FULL = $(subst .c,-FULL.o,$(STAGE1_ALLSRC))
+STAGE1OBJS-FULL = $(STAGE1_ALLSRC:.c=-FULL.o)
BINS = init stage1 dhcp-client rescue-gui probe-modules
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common
index 2d344a866..36fa34d49 100644
--- a/mdk-stage1/Makefile.common
+++ b/mdk-stage1/Makefile.common
@@ -15,7 +15,7 @@
#*****************************************************************************
ARCH := $(patsubst i%86,i386,$(shell uname -m))
-ARCH := $(patsubst arm%,arm,$(ARCH))
+ARCH := $(ARCH:arm%=arm)
# DEBUG = 1