summaryrefslogtreecommitdiff
path: root/contrib/Makefile
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-12-29 17:25:28 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-12-29 17:25:28 +0000
commit98b400114ae114f727ef27665aec4f745eee9615 (patch)
tree895c8835ddae8b43f571e58927e71e1ee5436611 /contrib/Makefile
parentc4b78a11c26895408871aa21a1b2c1569818eb64 (diff)
downloadgpsd-98b400114ae114f727ef27665aec4f745eee9615.tar.gz
add a simple makefile for some of these tools.
no "make install", but it's easier than having to remember which programs need to be linked with which system library
Diffstat (limited to 'contrib/Makefile')
-rw-r--r--contrib/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/Makefile b/contrib/Makefile
new file mode 100644
index 00000000..889c8c45
--- /dev/null
+++ b/contrib/Makefile
@@ -0,0 +1,41 @@
+# This is a skeleton makefile to simplify building some of these little
+# utilities. They probably won't be useful to many users, and they probably
+# won't get used on a daily basis, but someone might find them useful for
+# tinkering with their gear.
+
+PROGS= ashctl binlog binreplay garreset lla2ecef \
+ motosend nmeasend sirfctl ubxsend
+
+ADDOBJS=../strl.o
+
+all: $(PROGS)
+
+ashctl: ashctl.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o ashctl ashctl.c
+
+binlog: binlog.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o binlog binlog.c
+
+binreplay: binreplay.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o binreplay binreplay.c -lutil
+
+garreset: garreset.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o garreset garreset.c
+
+lla2ecef: lla2ecef.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o lla2ecef lla2ecef.c -lm
+
+motosend: motosend.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o motosend motosend.c
+
+nmeasend: nmeasend.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o nmeasend nmeasend.c
+
+sirfctl: sirfctl.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o sirfctl sirfctl.c
+
+ubxsend: ubxsend.c
+ $(CC) $(CFLAGS) $(ADDOBJS) -o ubxsend ubxsend.c
+
+clean:
+ rm -f $(PROGS) *.o *.core