blob: c39b9a11e34094b6a8b37fbe9e45d3e925313433 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#
#
# Makefile.am:
#
# Copyright (c) 2007 James McKenzie <james@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id: Makefile.am,v 1.9 2011/08/07 11:33:43 james Exp $
#
# $Log: Makefile.am,v $
# 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
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
|