Add glibc-2.2.2 support

Export glibc private data in libver-glibc-x.y.z.h
Split ver.h into ver.h and libver.h
Rework Makefile.
This commit is contained in:
agibert
2003-01-17 17:00:58 +00:00
parent ee099f1d31
commit 9d4490420c
3 changed files with 16 additions and 201 deletions

View File

@@ -1,7 +1,10 @@
GLIBC_RELEASE = $(shell ls /lib/libc-?.?.?.so | sed -e "s/^\/lib\/libc-.\..\.//" -e "s/\.so//")
all: libver.a libver.so
libver.o: libver.c ver.h Makefile
gcc -c -g -o libver.o -I . libver.c
libver.o: libver.c libver.h ver.h Makefile
gcc -c -g -D__GLIBC_RELEASE__=$(GLIBC_RELEASE) -o libver.o -I . libver.c
libver.a: libver.o
ar -r libver.a libver.o