aboutsummaryrefslogtreecommitdiffstats
path: root/include/nls.mk
Commit message (Expand)AuthorAgeFilesLines
* nls.mk: fix typoJohn Crispin2015-04-011-1/+1
* [include] nls.mk: fix build dependency on gettext (#11829)Jo-Philipp Wich2012-07-111-2/+2
* [buildroot] prepare support for libiconv, libintl stub/full switchingJo-Philipp Wich2011-02-021-0/+40
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
#
#
# Makefile.am:
#
# Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id$
#
# $Log$
# Revision 1.25  2012/06/22 10:22:24  james
# *** empty log message ***
#
# Revision 1.24  2008/03/07 13:16:02  james
# *** empty log message ***
#
# Revision 1.23  2008/03/06 16:49:05  james
# *** empty log message ***
#
# Revision 1.22  2008/03/03 06:04:18  james
# *** empty log message ***
#
# Revision 1.21  2008/02/28 22:55:27  staffcvs
# *** empty log message ***
#
# Revision 1.20  2008/02/27 15:04:32  james
# *** empty log message ***
#
# Revision 1.19  2008/02/27 10:47:34  james
# *** empty log message ***
#
# Revision 1.18  2008/02/26 23:23:17  james
# *** empty log message ***
#
# Revision 1.17  2008/02/24 00:42:53  james
# *** empty log message ***
#
# Revision 1.16  2008/02/22 23:39:27  james
# *** empty log message ***
#
# Revision 1.15  2008/02/15 16:48:56  james
# *** empty log message ***
#
# Revision 1.14  2008/02/15 03:32:07  james
# *** empty log message ***
#
# Revision 1.13  2008/02/14 16:21:17  james
# *** empty log message ***
#
# Revision 1.12  2008/02/14 02:46:44  james
# *** empty log message ***
#
# Revision 1.11  2008/02/14 01:55:57  james
# *** empty log message ***
#
# Revision 1.10  2008/02/13 18:05:06  james
# *** empty log message ***
#
# Revision 1.9  2008/02/13 16:57:29  james
# *** empty log message ***
#
# Revision 1.8  2008/02/13 09:12:20  james
# *** empty log message ***
#
# Revision 1.7  2008/02/12 22:36:46  james
# *** empty log message ***
#
# Revision 1.6  2008/02/09 15:47:28  james
# *** empty log message ***
#
# Revision 1.5  2008/02/08 15:06:42  james
# *** empty log message ***
#
# Revision 1.4  2008/02/07 01:04:16  james
# *** empty log message ***
#
# Revision 1.3  2008/02/07 00:39:13  james
# *** empty log message ***
#
# Revision 1.2  2008/02/04 01:32:39  james
# *** empty log message ***
#
# Revision 1.1  2008/02/03 16:20:24  james
# *** empty log message ***
#
#
#
#

INCLUDES=

# NB order here matters.
PROJECTHDRS= crt.h utf8.h tty.h ansi.h vt102.h keys.h history.h ring.h slide.h \
		log.h ipc.h symsocket.h keydis.h cmd.h lockfile.h rx.h \
		context.h vt102_charset.h prototypes.h

HDRS=project.h  ${PROJECTHDRS}


SRCS=ansi.c crt.c html.c libsympathy.c render.c  version.c vt102.c tty.c \
	keydis.c history.c ring.c ptty.c terminal.c util.c log.c ipc.c \
	slide.c symsocket.c  serial.c cmd.c lockfile.c utf8.c vt102_charset.c \
	rotate.c raw.c

CPROTO=cproto

SYMPATHYSRCS=${SRCS}

noinst_HEADERS= prototypes.h ${HDRS}

EXTRA_DIST=sympathy.h.tail

clean-local:
	-rm -f sympathy.h version.h version-num

libsympathy_a_SOURCES =  ${SYMPATHYSRCS}
libsympathy_la_SOURCES = ${SYMPATHYSRCS}

libsympathy_a_CFLAGS = ${AM_CFLAGS} 

BUILT_SOURCES = version.h sympathy.h

lib_LIBRARIES=libsympathy.a
lib_LTLIBRARIES=libsympathy.la

include_HEADERS=sympathy.h

AM_CFLAGS=-g -Wall

libsympathy_la_LDFLAGS = \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
        -release $(LT_RELEASE) \
        -export-dynamic 

VFD=${srcdir}/..
VF=${shell cat ${VFD}/version-files}
VFS=${VF:%=${VFD}/%}
VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }'  }
VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }

protos: sympathy.h
	echo > prototypes.h
	${CPROTO} -e -v ${INCLUDES} ${SRCS} > prototypes.tmp
	mv -f prototypes.tmp prototypes.h

tidy: ${SRCS} ${HDRS}
	indent -i2 -ts0 ${SRCS} ${HDRS}	
	/bin/rm -f *~

sympathy.h: ${PROJECTHDRS} sympathy.h.head sympathy.h.tail
	cat sympathy.h.head ${PROJECTHDRS} sympathy.h.tail > $@ || /bin/rm -f $@

version.h: $(VFD)/version-files $(VFD)/version-major \
	$(VFD)/version-minor $(VFD)/version-micro \
	$(VFD)/version-md5sums ${VFS} 
	if [ .${VNUM} = . ]; then \
		echo "#define VERSION \"libsympathy Version ${VDEF} + Edits\"" > version.h; \
		echo ${VDEF}-E > version-num; \
	else \
		echo "#define VERSION \"libsympathy Version ${VNUM}\"" > version.h; \
		echo ${VNUM} > version-num; \
	fi