Mercurial > hg > index.cgi
comparison Makefile @ 260:c5b1dd523ac4
Make default build use -O3
Because it yields such an impressive speedup, make the default build use -O3
instead of -g. If you need the debugging stuff, you can set CFLAGS=-g before
building.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 04 Feb 2013 20:35:47 -0700 |
parents | b97460509c3d |
children | 1c70570e3d42 |
comparison
equal
deleted
inserted
replaced
259:0c4b3e8b4d0b | 260:c5b1dd523ac4 |
---|---|
17 RANLIB := $(BUILDTPREFIX)ranlib | 17 RANLIB := $(BUILDTPREFIX)ranlib |
18 | 18 |
19 CPPFLAGS += -I lwlib -DPACKAGE_STRING='"lwtools 4.7+"' | 19 CPPFLAGS += -I lwlib -DPACKAGE_STRING='"lwtools 4.7+"' |
20 LDFLAGS += -L$(PWD)/lwlib -llw | 20 LDFLAGS += -L$(PWD)/lwlib -llw |
21 | 21 |
22 CFLAGS ?= -g -Wall | 22 CFLAGS ?= -O3 -Wall |
23 | 23 |
24 MAIN_TARGETS := lwasm/lwasm$(PROGSUFFIX) \ | 24 MAIN_TARGETS := lwasm/lwasm$(PROGSUFFIX) \ |
25 lwlink/lwlink$(PROGSUFFIX) \ | 25 lwlink/lwlink$(PROGSUFFIX) \ |
26 lwar/lwar$(PROGSUFFIX) \ | 26 lwar/lwar$(PROGSUFFIX) \ |
27 lwlink/lwobjdump$(PROGSUFFIX) | 27 lwlink/lwobjdump$(PROGSUFFIX) |