5 # Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
11 # Revision 1.1 2008/02/03 16:20:24 james
12 # *** empty log message ***
20 SRCS= libsympathy.c version.c
25 noinst_HEADERS= project.h prototypes.h
28 libsympathy_a_SOURCES = ${SYMPATHYSRCS}
29 libsympathy_la_SOURCES = ${SYMPATHYSRCS}
31 libsympathy_a_CFLAGS = ${AM_CFLAGS}
33 BUILT_SOURCES = version.h
35 lib_LIBRARIES=libsympathy.a
36 lib_LTLIBRARIES=libsympathy.la
38 include_HEADERS=sympathy.h
42 libsympathy_la_LDFLAGS = \
43 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
44 -release $(LT_RELEASE) \
48 VF=${shell cat ${VFD}/version-files}
50 VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
51 VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }' }
52 VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }
56 ${CPROTO} -v ${INCLUDES} ${SRCS} > prototypes.tmp
57 mv -f prototypes.tmp prototypes.h
59 version.h: $(VFD)/version-files $(VFD)/version-major \
60 $(VFD)/version-minor $(VFD)/version-micro \
61 $(VFD)/version-md5sums ${VFS} Makefile
62 if [ .${VNUM} = . ]; then \
63 echo "#define VERSION \"libsympathy Version ${VDEF} + Edits\"" > version.h; \
64 echo ${VDEF}-E > version-num; \
66 echo "#define VERSION \"libsympathy Version ${VNUM}\"" > version.h; \
67 echo ${VNUM} > version-num; \