5 # Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
11 # Revision 1.2 2008/02/04 01:32:39 james
12 # *** empty log message ***
14 # Revision 1.1 2008/02/03 16:20:24 james
15 # *** empty log message ***
23 SRCS= ansi.c crt.c html.c libsympathy.c render.c testtty.c version.c vt102.c
28 noinst_HEADERS= project.h prototypes.h
31 libsympathy_a_SOURCES = ${SYMPATHYSRCS}
32 libsympathy_la_SOURCES = ${SYMPATHYSRCS}
34 libsympathy_a_CFLAGS = ${AM_CFLAGS}
36 BUILT_SOURCES = version.h
38 lib_LIBRARIES=libsympathy.a
39 lib_LTLIBRARIES=libsympathy.la
41 include_HEADERS=sympathy.h
45 libsympathy_la_LDFLAGS = \
46 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
47 -release $(LT_RELEASE) \
51 VF=${shell cat ${VFD}/version-files}
53 VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
54 VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }' }
55 VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }
59 ${CPROTO} -v ${INCLUDES} ${SRCS} > prototypes.tmp
60 mv -f prototypes.tmp prototypes.h
62 version.h: $(VFD)/version-files $(VFD)/version-major \
63 $(VFD)/version-minor $(VFD)/version-micro \
64 $(VFD)/version-md5sums ${VFS} Makefile
65 if [ .${VNUM} = . ]; then \
66 echo "#define VERSION \"libsympathy Version ${VDEF} + Edits\"" > version.h; \
67 echo ${VDEF}-E > version-num; \
69 echo "#define VERSION \"libsympathy Version ${VNUM}\"" > version.h; \
70 echo ${VNUM} > version-num; \