]> skyeroc.xyz Git - dgamelaunch/commitdiff
allow $(optimize) to be overriden easily
authorJoshua Kwan <joshk@triplehelix.org>
Wed, 31 Dec 2003 18:58:20 +0000 (18:58 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Wed, 31 Dec 2003 18:58:20 +0000 (18:58 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@22 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

Makefile

index f34fdef59ecae65fdfe7c14f0672853fe38cfc5f..e651fef7b344e3144fdd356e10cde0b7857f7744 100644 (file)
--- 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)