summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pcmcia/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-15 11:28:03 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-15 11:28:03 +0000
commit158dc80bcd864eda64578c838cd76f72ab76086d (patch)
tree7c5aed20a3a7e5a1f6640d8aabf58228a04782d4 /mdk-stage1/pcmcia/Makefile
parentafd9291ef3d0279b49de38fceac5f11b8ba54360 (diff)
downloaddrakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.gz
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.bz2
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.xz
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.zip
- build glibc and dietlibc targets
- bzero string buffer before sscanf call (dietlibc implementation) - verify returns of ioperm so that I can use it in test mode
Diffstat (limited to 'mdk-stage1/pcmcia/Makefile')
-rw-r--r--mdk-stage1/pcmcia/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/mdk-stage1/pcmcia/Makefile b/mdk-stage1/pcmcia/Makefile
index e2e670146..fb93f10b8 100644
--- a/mdk-stage1/pcmcia/Makefile
+++ b/mdk-stage1/pcmcia/Makefile
@@ -18,17 +18,31 @@ top_dir = ..
include $(top_dir)/Makefile.common
-all: libpcmcia.a
+all: libpcmcia.a libpcmcia-DIET.a
clean:
rm -f *.o libpcmcia.a
FLAGS = -Wall -Werror -Os -fomit-frame-pointer -pipe -c -I..
-libpcmcia.a: pcmcia_probe.o cardmgr.o lex_config.o yacc_config.o
+
+OBJS = pcmcia_probe.o cardmgr.o lex_config.o yacc_config.o
+
+OBJS-DIET = $(subst .o,-DIET.o,$(OBJS))
+
+
+libpcmcia.a: $(OBJS)
ar -cru $@ $^
ranlib $@
-.c.o:
- gcc $(FLAGS) $(GLIBC_INCLUDES) $<
+libpcmcia-DIET.a: $(OBJS-DIET)
+ ar -cru $@ $^
+ ranlib $@
+
+
+$(OBJS): %.o: %.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) -c $< -o $@
+
+$(OBJS-DIET): %-DIET.o: %.c
+ gcc $(FLAGS) $(DIETLIBC_INCLUDES) -c $< -o $@