libsuperderpy/Makefile

24 lines
546 B
Makefile
Raw Normal View History

2012-02-19 21:10:36 +01:00
IDIR =.
CC=gcc
CFLAGS=-I$(IDIR) -Wall -ansi -g
2012-02-19 21:10:36 +01:00
SRCDIR=src
ODIR=obj
LIBS=-lallegro -lallegro_audio -lallegro_acodec -lallegro_image -lallegro_font -lallegro_main -lallegro_ttf -lm
2012-02-19 21:10:36 +01:00
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o moonwalk.o pause.o timeline.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)/*