2012-02-19 21:10:36 +01:00
|
|
|
IDIR =.
|
|
|
|
CC=gcc
|
2012-05-01 23:29:54 +02:00
|
|
|
CFLAGS=-I$(IDIR) -Wall -ansi -g
|
2012-02-19 21:10:36 +01:00
|
|
|
|
|
|
|
SRCDIR=src
|
|
|
|
ODIR=obj
|
2012-05-09 10:58:45 +02:00
|
|
|
LIBS=-lallegro -lallegro_audio -lallegro_acodec -lallegro_image -lallegro_font -lallegro_main -lallegro_ttf -lallegro_primitives -lm
|
2012-02-19 21:10:36 +01:00
|
|
|
|
2012-05-09 10:58:45 +02:00
|
|
|
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o moonwalk.o pause.o timeline.o allegro_utils.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
|
|
|
|
2012-05-16 18:18:52 +02:00
|
|
|
all: $(OUTPUTDIR)/superderpy
|
|
|
|
|
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)/*
|