From: Joshua Kwan Date: Wed, 31 Dec 2003 18:58:20 +0000 (+0000) Subject: allow $(optimize) to be overriden easily X-Git-Tag: v1.6.1-roc-dev~676 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=4febf7a77ec8a8445d0ae8ae559a73f7f650747a;p=dgamelaunch allow $(optimize) to be overriden easily git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@22 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/Makefile b/Makefile index f34fdef..e651fef 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,13 @@ VERSION = 1.3.10.1 NAME = dgamelaunch exclusions = CVS .cvsignore +ifndef optimize + optimize = -O0 +endif + CC = gcc LDFLAGS = -CFLAGS = -g3 -O0 -Wall -W -Wno-unused-parameter $(DEFS) +CFLAGS = -g3 $(optimize) -Wall -W -Wno-unused-parameter $(DEFS) DEFS = -DVERSION=\"$(VERSION)\" SRCS = virus.c ttyrec.c dgamelaunch.c io.c ttyplay.c stripgfx.c OBJS = $(SRCS:.c=.o)