diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile index 36d0280b..8dc90836 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -22,10 +22,12 @@ protoc_middleman: addressbook.proto @touch protoc_middleman add_person_cpp: add_person.cc protoc_middleman - c++ add_person.cc addressbook.pb.cc -lprotobuf -lpthread -o add_person_cpp + pkg-config --cflags protobuf # fails if protobuf is not installed + c++ add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf` list_people_cpp: list_people.cc protoc_middleman - c++ list_people.cc addressbook.pb.cc -lprotobuf -lpthread -o list_people_cpp + pkg-config --cflags protobuf # fails if protobuf is not installed + c++ list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf` javac_middleman: AddPerson.java ListPeople.java protoc_middleman javac AddPerson.java ListPeople.java com/example/tutorial/AddressBookProtos.java |