Add compile optimization options (as default).
[smdp.git] / Makefile
index de3c650..1748cbd 100644 (file)
--- a/Makefile
+++ b/Makefile
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 #
 
-CFLAGS   = -Wall -g
+CFLAGS   = -O3
 LDLIBS   = -lncurses
 OBJECTS  = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o
 DESTDIR ?= /usr/bin
 
+ifeq ($(DEBUG),1)
+       CFLAGS := -Wall -g -O0
+endif
+
 all: mdp
 
 mdp: $(OBJECTS)