summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/mar
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/mar')
-rw-r--r--mdk-stage1/mar/Makefile16
1 files changed, 2 insertions, 14 deletions
diff --git a/mdk-stage1/mar/Makefile b/mdk-stage1/mar/Makefile
index 801785947..0a12e21d8 100644
--- a/mdk-stage1/mar/Makefile
+++ b/mdk-stage1/mar/Makefile
@@ -25,15 +25,10 @@ include $(top_dir)/Makefile.common
TARGETS = libmar.a mar
-ifeq (DIETLIBC, $(L))
-TARGETS += libmar-DIET.a
-endif
-
-
all: $(TARGETS)
clean:
- rm -f *.o libmar.a libmar-DIET.a mar
+ rm -f *.o libmar.a mar
mar: mar-frontend.o mar-extract-only-standalone.o
@@ -44,15 +39,8 @@ libmar.a: mar-extract-only.o
ar -cru $@ $^
ranlib $@
-libmar-DIET.a: mar-extract-only-DIET.o
- ar -cru $@ $^
- ranlib $@
-
mar-extract-only.o: mar-extract-only.c mar-extract-only.h mar.h
- gcc $(CFLAGS) $(GLIBC_INCLUDES) -c mar-extract-only.c
-
-mar-extract-only-DIET.o: mar-extract-only.c mar-extract-only.h mar.h
- gcc $(CFLAGS) $(DIETLIBC_INCLUDES) -o $@ -c mar-extract-only.c
+ $(DIET) gcc $(CFLAGS) $(INCLUDES) -c mar-extract-only.c
mar-frontend.o: mar-frontend.c mar.h mar-extract-only.h
gcc $(CFLAGS) $(GLIBC_INCLUDES) -c mar-frontend.c