2018-06-21 15:37:37 +03:00
|
|
|
# Install
|
|
|
|
BIN = zahnrad
|
|
|
|
|
|
|
|
# Flags
|
2021-12-16 22:44:00 +03:00
|
|
|
CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2
|
2018-06-21 15:37:37 +03:00
|
|
|
|
|
|
|
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}
|