Nuklear/demo/x11_xft/Makefile
Michel Pollet 8ddb3e59f6 xlib: Add support for x11_xft for antialiases fonts
Looks a lot better.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2018-06-21 13:41:04 +01:00

22 lines
398 B
Makefile

# Install
BIN = zahnrad
# Flags
CFLAGS += -std=c89 -pedantic -O2
SRC = main.c
OBJ = $(SRC:.c=.o)
LDFLAGS += -lX11 -lm
CFLAGS += ${shell pkg-config --cflags xft} -DNK_XLIB_USE_XFT
LDFLAGS += ${shell pkg-config --libs xft}
SRC = ${wildcard *.c}
OBJ = $(SRC:.c=.o)
$(BIN):
@mkdir -p bin
rm -f bin/$(BIN) $(OBJS)
$(CC) $(SRC) $(CFLAGS) -D_POSIX_C_SOURCE=200809L -o bin/$(BIN) -lX11 ${LDFLAGS}