X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=Makefile;h=3f06d1e33e1380f4f35e634e3c9a281f7af1c175;hp=6ffba099dd2321c45d6eee29e3682a003fe5f7cd;hb=30a8f3daae083e91cd30b016213286a7cdcecb09;hpb=a2af96e68b210b7c3db90b7ec474498c5611a3a7 diff --git a/Makefile b/Makefile index 6ffba09..3f06d1e 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +debug := $(if $(DEBUG),1,0) ldflags := $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -cflags := -g $(shell sdl-config --cflags) -Wall +cflags := $(shell sdl-config --cflags) -Wall -DDEBUG=$(debug) -my_objects := sound.o file.o main.o +my_objects := file.o score.o sound.o main.o $(if $(DEBUG),debug.o) libs := SFont.o objects := $(libs) $(my_objects)