23 lines
373 B
Makefile
23 lines
373 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)
|
|
|
|
clean:
|
|
rm $(BINS) 2>/dev/null
|
|
|
|
# You can add your specific instructions there.
|
|
-include makefile.user
|