diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-04 23:08:09 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-04 23:08:09 +0000 |
commit | 2a115f6c06d812d7507e7df891ae994a8e731be8 (patch) | |
tree | 8bb42b11b371ae213b5558c8f2f363d6b47e2630 /ldso/util/Makefile | |
parent | f68eb8d50b11310628f53a9378bf612e8d4bfa09 (diff) |
Add a new 'readelf' util I wrote this weekend.
-Erik
Diffstat (limited to 'ldso/util/Makefile')
-rw-r--r-- | ldso/util/Makefile | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile index 8fe733eb9..e61e1b62d 100644 --- a/ldso/util/Makefile +++ b/ldso/util/Makefile @@ -1,27 +1,26 @@ TOPDIR=../../ -include $(TOPDIR)/ldso/Rules.mak +include $(TOPDIR)Rules.mak -CFLAGS += -DLDSO_ADDR="0x62f00020" # needed by ldd.o -#CFLAGS += -I./ -I../../include/ -#LDFLAGS += -nostdlib $(TOPDIR)lib/libc.a $(TOPDIR)lib/crt0.o $(GCCINCDIR)/../libgcc.a -LDFLAGS += $(TOPDIR)lib/libc.a $(TOPDIR)lib/crt0.o $(GCCINCDIR)/../libgcc.a +CFLAGS=-Wall -Os -I- -I../../include -I. +CC = $(TOPDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc -ALL = ldconfig ldd readelf # lddstub +all: ldconfig ldd readelf -all: $(ALL) - -CSRC= readelf.c ldconfig.c ldd.c readsoname.c -COBJS=$(patsubst %.c,%.o, $(CSRC)) -OBJS=$(COBJS) - -$(COBJS): %.o : %.c +readsoname.o: readsoname.c readsoname2.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o -readsoname.o: readsoname.c readsoname2.c +ldconfig.o: ldconfig.c + $(CC) $(CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" -c $< -o $@ + $(STRIPTOOL) -x -R .note -R .comment $*.o -readelf: readelf.o - $(CC) $(CFLAGS) $^ -o $@ +ldd.o: ldd.c + $(CC) $(CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" \ + -DLDSO_ADDR="0x62f00020" -c $< -o $@ + $(STRIPTOOL) -x -R .note -R .comment $*.o + +readelf: readelf.c + $(CC) $(CFLAGS) readelf.c -o $@ ldconfig: ldconfig.o readsoname.o $(CC) $(CFLAGS) $^ -o $@ @@ -29,13 +28,6 @@ ldconfig: ldconfig.o readsoname.o ldd: ldd.o readsoname.o $(CC) $(CFLAGS) $^ -o $@ -#ifeq ($(DEBUG),true) -#STUBFLAGS = -Wl,-dynamic-linker,../d-link/ld-linux.so -#endif - -#lddstub: lddstub.o -# $(CC) $(CFLAGS) $(LDFLAGS) $(STUBFLAGS) $^ -o $@ - clean: - rm -f $(ALL) *.o *~ core + rm -f ldconfig ldd readelf *.o *~ core |