From: tomo Date: Wed, 20 Aug 2003 18:01:37 +0000 (+0000) Subject: (HEADERS): New variable. X-Git-Tag: b1-r0_2_0-pre4~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2187a96d80b8293c79ac5312904e998afea897d3;p=chise%2Flibchise.git (HEADERS): New variable. (OBJS): New variable. (libchise.la): Refer $(OBJS); add --mode=link for libtool. (chise.lo): Depends on config.h. (name.lo): New target. (install.h): Refer $(HEADERS). --- diff --git a/Makefile.in b/Makefile.in index bc2c952..0296c60 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,21 +32,27 @@ VERSION = @PACKAGE_VERSION@ ABI_VERSION = 1:0:0 +HEADERS = chise.h chise-name.h +OBJS = chise.lo name.lo all: libchise.la -libchise.la: chise.lo - $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) \ +libchise.la: $(OBJS) + $(LIBTOOL) --mode=link \ + $(CC) -o libchise.la $(OBJS) $(LIBS) \ -rpath ${libdir} -version-info $(ABI_VERSION) -chise.lo: chise.c chise.h +chise.lo: chise.c chise.h config.h $(LIBTOOL) $(CC) $(CFLAGS) chise.c +name.lo: name.c chise-name.h + $(LIBTOOL) $(CC) $(CFLAGS) name.c + install: install.h install.libs install.db install.h: - install -c chise.h $(INCLUDE_INSTALLDIR) + install -c $(HEADERS) $(INCLUDE_INSTALLDIR) install.libs: libchise.la $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)