60c52adfaf
Co-authored-by: Rob Loach <robloach@gmail.com>
14 lines
258 B
Makefile
14 lines
258 B
Makefile
# Install
|
|
BIN = zahnrad
|
|
|
|
# Flags
|
|
CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2
|
|
|
|
SRC = main.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 -lm
|