aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile11
-rw-r--r--tests/test_decode1.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 00000000..da4030e2
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,11 @@
+CFLAGS=-ansi -pedantic -Wall -I .. -g -O0
+DEPS=../pb_decode.c ../pb_decode.h ../pb.h
+
+all: test_decode1
+
+clean:
+ rm -f test_decode1
+
+test_decode1: test_decode1.c $(DEPS)
+ $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c
+
diff --git a/tests/test_decode1.c b/tests/test_decode1.c
index fbdb7db6..20ea65e4 100644
--- a/tests/test_decode1.c
+++ b/tests/test_decode1.c
@@ -8,7 +8,7 @@
typedef enum {
Person_PhoneType_MOBILE = 0,
Person_PhoneType_HOME = 1,
- Person_PhoneType_WORK = 2,
+ Person_PhoneType_WORK = 2
} Person_PhoneType;
typedef struct {