2012-02-19 21:10:36 +01:00
|
|
|
IDIR =.
|
|
|
|
CC=gcc
|
2012-02-29 12:16:11 +01:00
|
|
|
CFLAGS=-I$(IDIR) -Wall -g
|
2012-02-19 21:10:36 +01:00
|
|
|
|
|
|
|
SRCDIR=src
|
|
|
|
ODIR=obj
|
2012-03-08 20:55:18 +01:00
|
|
|
LIBS=-lallegro -lallegro_audio -lallegro_acodec -lallegro_image -lallegro_font -lallegro_ttf -lm
|
2012-02-19 21:10:36 +01:00
|
|
|
|
2012-03-02 16:52:13 +01:00
|
|
|
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o pause.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)/*
|