This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
127 lines (105 loc) · 3.26 KB
/
Makefile.in
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
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
# Makefile for RtkGPS
# Most recent modification: 21 May 2010
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@/@PACKAGE_TARNAME@
bindir = @bindir@
mandir = @mandir@
GEOIDCOR=@GEOIDCOR@
GGRDFILE=ww15mgh.dat
GGRDPATH=$(datadir)/$(GGRDFILE)
SHELL = @SH@
PYTHON = @PYTHON@
RM = @RM@
BZCAT = @BZCAT@
INSTALL = @INSTALL@
CC=@CC@
DEFS=@DEFS@ -DGGRDPATH=\"$(GGRDPATH)\"
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
MODSRC = serial.c rtkcom.c gpsfmt.c
MODHDR = $(MODSRC:%.c=%.h)
MODOBJ = $(MODSRC:%.c=%.o)
EXESRC = rtkgps.c
EXEOBJ = $(EXESRC:%.c=%.o)
EXE = $(EXESRC:%.c=%)
PYEXE = rtknmea
MANSRC = rtkgps.1 rtknmea.1
DISTFILES = configure.ac configure Makefile.in install-sh \
README INSTALL LICENSE NEWS ChangeLog $(PYEXE) \
$(GGRDFILE).bz2 $(MODSRC) $(MODHDR) $(EXESRC) $(MANSRC)
PKGNAME = @PACKAGE_TARNAME@
PKGVRSN = @PACKAGE_VERSION@
DISTDIR = ${PKGNAME}-${PKGVRSN}
DISTTGZ = dist/${DISTDIR}.tar.gz
.PHONY: all clean distclean install uninstall dist listing
all: ${EXE}
${EXE}: ${MODOBJ} ${EXEOBJ}
.c.o:
${CC} -c $< ${CFLAGS} ${DEFS}
.o:
${CC} -o $@ $< ${MODOBJ} ${LDFLAGS}
serial.o: serial.h serial.c Makefile
rtkcom.o: rtkcom.h rtkcom.c serial.h Makefile
gpsfmt.o: gpsfmt.h gpsfmt.c rtkcom.h Makefile
rtkgps.o: rtkgps.c serial.h rtkcom.h gpsfmt.h Makefile
clean:
@${RM} -f ${EXE} ${EXEOBJ} ${MODOBJ} ${MANHTML} *.o
distclean: clean
@${RM} -f config.* Makefile Makefile.bak; ${RM} -rf dist
install:
@echo "Installing executable(s) in ${DESTDIR}${bindir}";\
if [ ! -d ${DESTDIR}${bindir} ];\
then ${INSTALL} -d ${DESTDIR}${bindir};\
fi;\
${INSTALL} -m 755 ${EXE} ${DESTDIR}${bindir};\
if [ "${PYTHON}" != '' ]; then\
for pyexe in ${PYEXE}; do\
sed -e 's+/usr/bin/python+${PYTHON}+' $$pyexe > $$pyexe.tmp;\
${INSTALL} -m 755 $$pyexe.tmp ${DESTDIR}${bindir}/$$pyexe;\
${RM} -f $$pyexe.tmp;\
done;\
fi;\
if [ "${GEOIDCOR}" = "yes" ]; then\
echo "Installing data in ${DESTDIR}${datadir}";\
if [ ! -d ${DESTDIR}${datadir} ];\
then ${INSTALL} -d ${DESTDIR}${datadir};\
fi;\
${BZCAT} ${GGRDFILE}.bz2 > ${DESTDIR}${GGRDPATH};\
fi;\
echo "Installing man page in ${DESTDIR}${mandir}";\
if [ ! -d ${DESTDIR}${mandir} ]; then\
${INSTALL} -d ${DESTDIR}${mandir};\
fi;\
if [ ! -d ${DESTDIR}${mandir}/man1 ];\
then ${INSTALL} -d ${DESTDIR}${mandir}/man1;\
fi;\
${INSTALL} -m 644 ${MANSRC} ${DESTDIR}${mandir}/man1
uninstall:
@echo "Uninstalling executable(s) in ${DESTDIR}${bindir}";\
for exe in ${EXE} ${PYEXE}; do\
${RM} -f ${DESTDIR}${bindir}/$$exe;\
done;\
if [ "${GEOIDCOR}" = "yes" ]; then\
echo "Uninstalling data in ${DESTDIR}${datadir}";\
${RM} -f ${DESTDIR}${GGRDPATH};\
rmdir ${DESTDIR}${datadir};\
fi;\
echo "Uninstalling man pages in ${mandir}";\
for man in ${MANSRC}; do\
${RM} -f ${DESTDIR}${mandir}/man1/$$man;\
done
dist: ${DISTTGZ}
${DISTTGZ}: ${DISTFILES}
@${RM} -rf ${DISTTGZ} dist/${DISTDIR};\
mkdir -p dist/${DISTDIR};\
(tar cf - ${DISTFILES}) | (cd dist/${DISTDIR} && tar xfp -);\
(cd dist; tar -cf ${DISTDIR}.tar ./${DISTDIR};\
gzip -9 ${DISTDIR}.tar);\
${RM} -rf dist/${DISTDIR}
listing:
@-enscript -E --word-wrap --header='$$N|$$D{%F}|Page $$% of $$=' \
-jU2 -o listing.ps configure.ac Makefile.in README NEWS \
ChangeLog rtkgps.1 *.h *.c