# # # Makefile.am: # # Copyright (c) 2007 James McKenzie , # All rights reserved. # # $Id: Makefile.am,v 1.11 2013/09/14 08:54:25 james Exp $ # # $Log: Makefile.am,v $ # Revision 1.11 2013/09/14 08:54:25 james # add lvm, raid, new ext3 to sync # # Revision 1.10 2012/09/10 08:28:34 james # *** empty log message *** # # Revision 1.9 2011/08/07 11:33:43 james # add support for repairing half a table # # Revision 1.8 2009/05/06 01:40:51 james # *** empty log message *** # # Revision 1.7 2009/05/06 01:35:00 james # *** empty log message *** # # Revision 1.6 2007/11/12 13:28:04 james # *** empty log message *** # # Revision 1.5 2007/09/10 11:23:08 root # *** empty log message *** # # Revision 1.3 2007/09/09 22:29:50 root # *** empty log message *** # # Revision 1.2 2007/09/08 18:21:23 root # *** empty log message *** # # Revision 1.1 2007/09/08 16:49:37 root # *** empty log message *** # # # # CPROTO=cproto INCLUDES = noinst_HEADERS = disk.h gpt.h guid.h project.h prototypes.h bin_PROGRAMS = gpt SRCS=gpt.c version.c util.c guid.c crc.c header.c disk.c pmbr.c show.c entry.c new.c modify.c sync.c fixup.c dump.c set_flag.c gpt_SOURCES = ${SRCS} gpt_LDADD = AM_CFLAGS=-g gpt_LDFLAGS = BUILT_SOURCES = version.h 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: echo > prototypes.h ${CPROTO} -v ${INCLUDES} ${SRCS} > prototypes.tmp mv -f prototypes.tmp prototypes.h version.h: $(VFD)/version-files $(VFD)/version-major \ $(VFD)/version-minor $(VFD)/version-micro \ $(VFD)/version-md5sums ${VFS} Makefile if [ .${VNUM} = . ]; then \ echo "#define VERSION \"gpt Version ${VDEF} + Edits\"" > version.h; \ echo ${VDEF}-E > version-num; \ else \ echo "#define VERSION \"gpt Version ${VNUM}\"" > version.h; \ echo ${VNUM} > version-num; \ fi DISTCLEANFILES=version.h version-num