2012-02-19 21:10:36 +01:00
|
|
|
IDIR =.
|
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-I$(IDIR) -std=gnu99 -Wall -DDEBUG -g
|
|
|
|
|
|
|
|
SRCDIR=src
|
|
|
|
ODIR=obj
|
|
|
|
LIBS=-lallegro -lallegro_audio-debug -lallegro_acodec-debug -lallegro_image-debug -lallegro_font-debug -lallegro_ttf-debug -lm
|
|
|
|
|
2012-02-24 13:03:30 +01:00
|
|
|
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o
|
2012-02-19 21:10:36 +01:00
|
|
|
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
|
|
|
|
2012-02-19 21:27:26 +01:00
|
|
|
OUTPUTDIR = bin
|
|
|
|
|
2012-02-19 21:10:36 +01:00
|
|
|
$(ODIR)/%.o: $(SRCDIR)/%.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2012-02-19 21:27:26 +01:00
|
|
|
$(OUTPUTDIR)/superderpy: $(OBJ)
|
2012-02-22 11:53:26 +01:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2012-02-19 21:10:36 +01:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2012-02-19 21:27:26 +01:00
|
|
|
rm -f $(ODIR)/*.o *~ allegro.log $(SRCDIR)/*~ $(OUTPUTDIR)/*
|