diff options
author | NotZed <notzed@zedzone.helixcode.com> | 2000-02-14 13:43:42 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-02-14 13:43:42 +0800 |
commit | c145f90b49652191dc4135da4eaa522c76ba4874 (patch) | |
tree | c586706299d2eead71f1289f22b5393ef6692285 /libibex | |
parent | aeaa2ed70043e607e1da431d8f33726590f4c83b (diff) | |
download | gsoc2013-evolution-c145f90b49652191dc4135da4eaa522c76ba4874.tar.gz gsoc2013-evolution-c145f90b49652191dc4135da4eaa522c76ba4874.tar.zst gsoc2013-evolution-c145f90b49652191dc4135da4eaa522c76ba4874.zip |
Hack together a build using libtool. This should all be auto*'d at some
2000-02-14 NotZed <notzed@zedzone.helixcode.com>
* Makefile: Hack together a build using libtool. This should all
be auto*'d at some point I guess.
svn path=/trunk/; revision=1773
Diffstat (limited to 'libibex')
-rw-r--r-- | libibex/ChangeLog | 5 | ||||
-rw-r--r-- | libibex/Makefile | 28 |
2 files changed, 21 insertions, 12 deletions
diff --git a/libibex/ChangeLog b/libibex/ChangeLog index 47d4caeed6..4aa2d91b0e 100644 --- a/libibex/ChangeLog +++ b/libibex/ChangeLog @@ -1,3 +1,8 @@ +2000-02-14 NotZed <notzed@zedzone.helixcode.com> + + * Makefile: Hack together a build using libtool. This should all + be auto*'d at some point I guess. + 2000-02-13 NotZed <notzed@zedzone.helixcode.com> * Added ChangeLog file. diff --git a/libibex/Makefile b/libibex/Makefile index eec7e1b302..8cc2c1b873 100644 --- a/libibex/Makefile +++ b/libibex/Makefile @@ -1,26 +1,30 @@ -OBJS=file.o index.o find.o words.o -MKINDEXOBJS=mkindex.o -LOOKUPOBJS=lookup.o +OBJS=file.lo index.lo find.lo words.lo +MKINDEXOBJS=mkindex.lo +LOOKUPOBJS=lookup.lo CFLAGS=${PROF} -g -Wall -Wstrict-prototypes -Wmissing-prototypes `glib-config --cflags` `unicode-config --cflags` LDFLAGS=${PROF} -all: libibex.a mkindex lookup +LIBTOOL=sh ../libtool -libibex.a: ${OBJS} - ar cru $@ ${OBJS} - @test -x /usr/bin/ranlib && ranlib $@ +all: libibex.la mkindex lookup -mkindex: ${MKINDEXOBJS} libibex.a - ${CC} ${LDFLAGS} -o mkindex ${MKINDEXOBJS} libibex.a \ +%.lo: %.c + $(LIBTOOL) --mode compile $(CC) $(CFLAGS) -c -o $@ $< + +libibex.la: ${OBJS} + $(LIBTOOL) --mode link $(CC) -static $^ -o $@ + +mkindex: ${MKINDEXOBJS} libibex.la + ${LIBTOOL) --mode link $(CC) ${LDFLAGS} -o mkindex ${MKINDEXOBJS} libibex.la \ `glib-config --libs` `unicode-config --libs` -lookup: ${LOOKUPOBJS} libibex.a - ${CC} ${LDFLAGS} -o lookup ${LOOKUPOBJS} libibex.a \ +lookup: ${LOOKUPOBJS} libibex.la + $(LIBTOOL) --mode link ${CC} ${LDFLAGS} -o lookup ${LOOKUPOBJS} libibex.la \ `glib-config --libs` `unicode-config --libs` clean: - rm -f ${OBJS} libibex.a + rm -f ${OBJS} libibex.la rm -f ${MKINDEXOBJS} mkindex rm -f ${LOOKUPOBJS} lookup rm -f *.core *~ INDEX
\ No newline at end of file |