diff options
author | Sylvain Munaut <246tnt@gmail.com> | 2009-12-22 21:53:22 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-12-22 21:54:40 +0100 |
commit | 0f9141384bc338cdf8db805fbfe502aed622f816 (patch) | |
tree | 57e714b27cc84e7c2972717e913f8a47a16caad8 /rrlp-ephemeris/Makefile | |
parent | e2b8eceee779176320cd0dbe54a80da42380e318 (diff) |
Import code to generate RRLP ephemeris data from u-blox GPS receiver
taken from http://www.246tnt.com/files/rrlp-20091101.tar.bz2
Diffstat (limited to 'rrlp-ephemeris/Makefile')
-rw-r--r-- | rrlp-ephemeris/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/rrlp-ephemeris/Makefile b/rrlp-ephemeris/Makefile new file mode 100644 index 000000000..a1f22650c --- /dev/null +++ b/rrlp-ephemeris/Makefile @@ -0,0 +1,44 @@ + +ASN1C=../../../tmp/rrlp/asn1c/asn1c/asn1c +ASN1_INCLUDE=/home/tnt/tmp/rrlp/asn1c/skeletons +CC=gcc +CFLAGS=-I$(ASN1_INCLUDE) -Iasn1_gen -O3 -Wall + +ASN1_FILES=$(wildcard asn1/*.asn) + + +all: rrlp-test + + +rrlp-test: libgsm-asn1.a gps.o ubx.o ubx-parse.o rrlp.o main.o + $(CC) -o $@ gps.o ubx.o ubx-parse.o rrlp.o main.o -L. -lgsm-asn1 + + +# +# ASN1 file autogeneration (need recursive makefile call) +# + +ASN1_SOURCES = $(wildcard asn1_gen/*.c) +ASN1_OBJECTS = $(ASN1_SOURCES:.c=.o) + +libgsm-asn1.a: $(ASN1_FILES) + mkdir -p asn1_gen && \ + cd asn1_gen && \ + $(ASN1C) -fskeletons-copy -fnative-types -gen-PER $(addprefix ../,$^) + @rm asn1_gen/converter-sample.c asn1_gen/Makefile.am.sample + @$(MAKE) libgsm-asn1.a.submake + +libgsm-asn1.a.submake: $(ASN1_OBJECTS) + $(AR) rcs libgsm-asn1.a $^ + +.PHONY: libgsm-asn1.a.submake + + +# +# Clean +# + +clean: + rm -Rf asn1_gen + rm -f libgsm-asn1.a *.o rrlp-test + |