protobuf-c/tests/Makefile
Adrian Reber 7120244dba
Re-add tests from c9s
Related: rhbz#2186678

Signed-off-by: Adrian Reber <areber@redhat.com>
2023-04-24 16:28:57 +02:00

12 lines
362 B
Makefile

all: add_person_c
protoc_middleman: addressbook.proto
protoc-c --c_out=. addressbook.proto
add_person_c: add_person.c protoc_middleman
pkg-config --libs libprotobuf-c # fails if protobuf is not installed
gcc add_person.c addressbook.pb-c.c -o add_person_c `pkg-config --libs libprotobuf-c`
clean:
rm -f add_person_c addressbook.pb-c.c addressbook.pb-c.h