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)