summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-11-09 20:01:37 +0100
committerHarald Welte <laforge@gnumonks.org>2015-11-09 20:01:37 +0100
commita915c1c944938f332e70aff8927f19b6e381eeea (patch)
treeeb9301d3b28df8b01d6f208780d9ef827dea688d /Makefile
initial checkin of some c-language code to parse Sierra Wireless HAPC
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3b6153c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+OSMO_CFLAGS:=`pkg-config --cflags libosmocore`
+OSMO_LDFLAGS:=`pkg-config --libs libosmocore`
+
+CFLAGS=-g -Wall $(OSMO_CFLAGS)
+LDFLAGS=$(OSMO_LDFLAGS)
+
+all: hapc_test
+
+%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $<
+
+
+hapc_test: hapc_test.o hapc_frame.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+clean:
+ rm -f hapc_test *.o || true
personal git repositories of Harald Welte. Your mileage may vary