diff options
author | Giacomo Bagnoli <g.bagnoli@asidev.com> | 2010-03-10 14:10:03 +0100 |
---|---|---|
committer | Giacomo Bagnoli <g.bagnoli@asidev.com> | 2010-03-10 14:10:03 +0100 |
commit | 7959e19f3ba90d4b74094b792421e963b314ad5a (patch) | |
tree | 3273c3fe8e3a87b3ebcec436ac601886bd0033e2 /libdl/Makefile.orig | |
parent | 5ab5ad4409688f0771fccc9585c1a5b49ff6bc34 (diff) |
Imported libdl from git
Diffstat (limited to 'libdl/Makefile.orig')
-rw-r--r-- | libdl/Makefile.orig | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libdl/Makefile.orig b/libdl/Makefile.orig new file mode 100644 index 0000000..8086359 --- /dev/null +++ b/libdl/Makefile.orig @@ -0,0 +1,47 @@ +# go on and adjust here if you don't like those flags +CFLAGS=-Os -s -pipe -DDEBUG +#CFLAGS=-Wall -Os -fomit-frame-pointer -s -pipe -DDEBUG +CC=$(CROSS_COMPILE)gcc +# likewise, if you want to change the destination prefix +DESTPREFIX=/usr/local +DESTDIR=lib +TARGET=libdl +DOCS=COPYING README +RELEASE=$(shell basename `pwd`) + +all: static shared + +clean: + rm -f *.o $(TARGET).so* $(TARGET).a + +distclean: clean + rm -f *~ *.s + +install: all + install -d $(DESTPREFIX)/$(DESTDIR) + install -c $(TARGET) $(DESTPREFIX)/$(DESTDIR) + +install-doc: + install -d $(DESTPREFIX)/share/doc/libdl + install -c $(DOCS) $(DESTPREFIX)/share/doc/libdl + +release: distclean release_gz release_bz2 + @echo --- $(RELEASE) released --- + +release_gz: distclean + @echo Building tar.gz + ( cd .. ; tar czf $(RELEASE).tar.gz $(RELEASE) ) + +release_bz2: distclean + @echo Building tar.bz2 + ( cd .. ; tar cjf $(RELEASE).tar.bz2 $(RELEASE) ) + +static: $(TARGET).o + $(AR) rcs $(TARGET).a $(TARGET).o + +shared: $(TARGET).o + $(CC) -shared -Wl,-soname,$(TARGET).so.1 -o $(TARGET).so.1.0.0 $(TARGET).o + +$(TARGET).o: dl_syscalls.h dl_syscalls.c + $(CC) -fPIC $(CFLAGS) -c dl_syscalls.c -o $(TARGET).o + |