X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=Makefile;h=42d1fe9e608efd8de252f6f81ed285eddfc23b7f;hp=994cd8b8ee55fcf6c419d976130b7338b5faeb09;hb=0224eb908d4084f52a22c8d64404a0efb4acfa35;hpb=841f94c4182f8dff0253db9bae4922c3c9039a5f diff --git a/Makefile b/Makefile index 994cd8b..42d1fe9 100644 --- a/Makefile +++ b/Makefile @@ -18,19 +18,18 @@ DATA_PREFIX := /usr/share/vor PROGRAM_PREFIX := /usr/games/bin -CFLAGS := -Wall +CFLAGS := -Wall -ggdb LDFLAGS := -debug := $(if $(DEBUG),-DDEBUG=1) paths := -DDATA_PREFIX=\"$(DATA_PREFIX)\" sdl-cflags := $(shell sdl-config --cflags) sdl-ldflags := $(shell sdl-config --libs) ldflags := $(sdl-ldflags) -lSDL_image -lSDL_mixer $(LDFLAGS) -cflags := $(sdl-cflags) $(debug) $(paths) $(CFLAGS) +cflags := $(sdl-cflags) $(paths) $(CFLAGS) -my_objects := args.o dust.o file.o mt.o rocks.o score.o shape.o sound.o -my_objects += $(if $(DEBUG),debug.o) main.o +my_objects := args.o dust.o file.o mt.o rocks.o score.o sprite.o sound.o +my_objects += main.o libs := SFont.o objects := $(libs) $(my_objects) @@ -64,7 +63,25 @@ program: vor $(my_objects): config.h -main.o file.o: file.h +SFont.o: SFont.h + +args.o: args.h + +dust.o: globals.h dust.h mt.h + +file.o: file.h common.h + +main.o: args.h common.h dust.h file.h globals.h mt.h rocks.h score.h sprite.h sound.h + +mt.o: mt.h + +rocks.o: rocks.h common.h file.h globals.h mt.h sprite.h + +score.o: score.h common.h file.h + +sound.o: sound.h args.h common.h + +sprite.o: sprite.h common.h vor: $(objects) @echo linking $@ from $^ @@ -72,7 +89,11 @@ vor: $(objects) include gfx.mk +tags: *.c *.h + exuberant-ctags *.c *.h /usr/include/SDL/* + clean: program-clean + rm -f tags maintainer-clean: program-clean data-clean