diff options
author | Matthias Badaire <mbadaire@mandriva.com> | 2001-05-30 14:31:23 +0000 |
---|---|---|
committer | Matthias Badaire <mbadaire@mandriva.com> | 2001-05-30 14:31:23 +0000 |
commit | 0879c2dadfe9f6998bdcddf837918ed8617d17b4 (patch) | |
tree | 29d89b91ab9935e390efcf1739a7867b8ea2d8c3 /mdk-stage1/mar | |
parent | d8b95b8592b512c3bc036cb2df9745e39104490d (diff) | |
download | drakx-0879c2dadfe9f6998bdcddf837918ed8617d17b4.tar drakx-0879c2dadfe9f6998bdcddf837918ed8617d17b4.tar.gz drakx-0879c2dadfe9f6998bdcddf837918ed8617d17b4.tar.bz2 drakx-0879c2dadfe9f6998bdcddf837918ed8617d17b4.tar.xz drakx-0879c2dadfe9f6998bdcddf837918ed8617d17b4.zip |
- allow build on ia64
- have CFLAGS centralized in Makefile.common (should help ports such as alpha)
- better looking sub makefiles
Diffstat (limited to 'mdk-stage1/mar')
-rw-r--r-- | mdk-stage1/mar/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/mdk-stage1/mar/Makefile b/mdk-stage1/mar/Makefile index dc5316a1a..801785947 100644 --- a/mdk-stage1/mar/Makefile +++ b/mdk-stage1/mar/Makefile @@ -22,13 +22,19 @@ top_dir = .. include $(top_dir)/Makefile.common -all: libmar.a libmar-DIET.a mar +TARGETS = libmar.a mar + + +ifeq (DIETLIBC, $(L)) +TARGETS += libmar-DIET.a +endif + + +all: $(TARGETS) clean: rm -f *.o libmar.a libmar-DIET.a mar -FLAGS = -Wall -Werror -Os -fomit-frame-pointer -c - mar: mar-frontend.o mar-extract-only-standalone.o gcc -o mar mar-frontend.o mar-extract-only-standalone.o -lbz2 @@ -43,13 +49,13 @@ libmar-DIET.a: mar-extract-only-DIET.o ranlib $@ mar-extract-only.o: mar-extract-only.c mar-extract-only.h mar.h - gcc $(FLAGS) $(GLIBC_INCLUDES) mar-extract-only.c + 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 $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ mar-extract-only.c + gcc $(CFLAGS) $(DIETLIBC_INCLUDES) -o $@ -c mar-extract-only.c mar-frontend.o: mar-frontend.c mar.h mar-extract-only.h - gcc $(FLAGS) $(GLIBC_INCLUDES) mar-frontend.c + gcc $(CFLAGS) $(GLIBC_INCLUDES) -c mar-frontend.c mar-extract-only-standalone.o: mar-extract-only.c mar-extract-only.h mar.h - gcc $(FLAGS) $(GLIBC_INCLUDES) -o $@ -D_STANDALONE_ mar-extract-only.c + gcc $(CFLAGS) $(GLIBC_INCLUDES) -o $@ -D_STANDALONE_ -c mar-extract-only.c |