libsuperderpy/Makefile
Sebastian Krzyszkowiak add0c3d3ba add level gamestate
2012-02-22 12:43:14 +01:00

23 lines
535 B
Makefile

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
_OBJ = main.o about.o intro.o loading.o map.o menu.o level.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
OUTPUTDIR = bin
$(ODIR)/%.o: $(SRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS)
$(OUTPUTDIR)/superderpy: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ allegro.log $(SRCDIR)/*~ $(OUTPUTDIR)/*