libsuperderpy/Makefile

24 lines
531 B
Makefile
Raw Normal View History

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-01 13:32:44 +01:00
LIBS=-lallegro-debug -lallegro_audio-debug -lallegro_acodec-debug -lallegro_image-debug -lallegro_font-debug -lallegro_ttf-debug -lm
2012-02-19 21:10:36 +01:00
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)
$(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)/*