2016-12-31 09:29:45 +03:00
|
|
|
# Install
|
|
|
|
BIN = demo
|
|
|
|
|
|
|
|
# Flags
|
2019-02-27 17:02:44 +03:00
|
|
|
CFLAGS += -std=c89 -pedantic -O2
|
2016-12-31 09:29:45 +03:00
|
|
|
|
|
|
|
SRC = main.c
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
|
|
# TODO: Handle Windows build
|
|
|
|
#ifeq ($(OS),Windows_NT)
|
|
|
|
#BIN := $(BIN).exe
|
|
|
|
#LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
|
|
|
|
#else
|
|
|
|
LIBS = -lallegro -lallegro_main -lallegro_image -lallegro_font \
|
|
|
|
-lallegro_ttf -lallegro_primitives -lm
|
|
|
|
#endif
|
|
|
|
|
|
|
|
$(BIN):
|
|
|
|
@mkdir -p bin
|
|
|
|
rm -f bin/$(BIN) $(OBJS)
|
|
|
|
$(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) $(LIBS)
|