libipc-examples/c/makefile

23 lines
373 B
Makefile
Raw Normal View History

2023-02-08 19:03:00 +01:00
CC ?= cc
USR_LDFLAGS ?=
2024-05-31 19:35:04 +02:00
LDFLAGS ?= $$(pkg-config --libs ipc)
LDFLAGS += $(USR_LDFLAGS)
LDFLAGS += $(STATIC_BUILD)
CFLAGS ?= -Wall -Wextra
2023-02-08 19:03:00 +01:00
all: build
include ../mk/makefile.utils
2023-02-08 19:03:00 +01:00
BINS = pong pongd
build: $(BINS)
$(BINS):
$(CC) -o $@ $@.c $(CFLAGS) $(LDFLAGS)
2023-02-08 19:03:00 +01:00
clean:
rm $(BINS) 2>/dev/null
# You can add your specific instructions there.
-include makefile.user