Create a new directory anywhere you’d like for this project:

mkdir kafka-c-getting-started && cd kafka-c-getting-started

Create the following Makefile for the project:

ALL: producer consumer

CFLAGS=-Wall $(shell pkg-config --cflags glib-2.0 rdkafka)
LDLIBS=$(shell pkg-config --libs glib-2.0 rdkafka)