X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=Makefile;h=be17b467a9402e7d32d8caefe6fde3934af66cb2;hp=7965c18cbf22792f741118a93bbeabc8989eca58;hb=fe386ffa373cddf449ac069d247e0fb0208620a4;hpb=46dacbe75dac20a1c6e1b61a2eb99ca25fc971ec diff --git a/Makefile b/Makefile index 7965c18..be17b46 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ debug := $(if $(DEBUG),1,0) ldflags := $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -cflags := $(shell sdl-config --cflags) -Wall -DDEBUG=$(debug) +cflags := $(shell sdl-config --cflags) -Wall -DDEBUG=$(debug) $(CFLAGS) my_objects := file.o rocks.o score.o shape.o sound.o main.o $(if $(DEBUG),debug.o) libs := SFont.o @@ -39,7 +39,12 @@ DATA_PREFIX = /usr/share/vor PROGRAM_PREFIX = /usr/games/bin -all: vor $(graphics) + +.PHONY: all clean graphics maintainer-clean install uninstall + +all: graphics vor + +graphics: $(graphics) %.o: %.c $(CC) $(cflags) -c -o $@ $< @@ -54,7 +59,10 @@ vor: $(objects) include gfx.mk clean: - rm -f *.o vor $(graphics) + rm -f *.o vor + +maintainer-clean: clean + rm -f $(graphics) install: all if [ ! -d $(DATA_PREFIX) ]; then mkdir $(DATA_PREFIX); fi