Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a43fd9adb2
28 lines (19 sloc) 0.599 kb
CC=gcc
CFLAGS=-Wall -O0 -funroll-loops -c -g
LDFLAGS=-O0
LDLIBS=-lm
SOURCES=main.c game.c astar.c heap.c gen.c
HEADERS=game.h astar.h heap.h gen.h
ifeq ($(ALLEGRO),1)
SOURCES+=gfx.c
CFLAGS+=-DALLEGRO $(pkg-config allegro_ttf-5.0 allegro_font-5.0 allegro-5.0 allegro_primitives-5.0 --cflags)
LDLIBS+=`pkg-config allegro-5.0 allegro_ttf-5.0 allegro_font-5.0 allegro_primitives-5.0 --libs`
endif
OBJECTS=$(addsuffix .o, $(basename ${SOURCES}))
EXECUTABLE=main
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(OBJECTS): %.o: %.c $(HEADERS)
clean:
rm -f $(EXECUTABLE) $(OBJECTS)
.PHONY: all clean
Jump to Line
Something went wrong with that request. Please try again.