libipc-examples/c/makefile

29 lines
437 B
Makefile

CC ?= cc
USR_LDFLAGS ?=
LDFLAGS ?= $$(pkg-config --libs ipc)
LDFLAGS += $(USR_LDFLAGS)
LDFLAGS += $(STATIC_BUILD)
CFLAGS ?= -Wall -Wextra
all: build
include ../mk/makefile.utils
BINS = pong pongd
build: $(BINS)
$(BINS):
$(CC) -o $@ $@.c $(CFLAGS) $(LDFLAGS)
run-pong:
$(VALGRIND) ./pong
run-pongd:
$(VALGRIND) ./pongd
clean:
rm $(BINS) 2>/dev/null
# You can add your specific instructions there.
-include makefile.user