summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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