Nuklear/demo/x11/Makefile
Alexandre Erwin Ittner 72e9496768 Use standard C compiler by default
Always use the standard compiler as defined by the environment
variable CC. User can set it when a different compiler if required
(e.g. CC=clang make)
2016-04-19 21:44:46 -03:00

14 lines
222 B
Makefile

# Install
BIN = zahnrad
# Flags
CFLAGS = -std=c89 -pedantic -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