aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <[email protected]>2017-11-16 18:58:47 +0100
committerErik Liodden <[email protected]>2017-11-16 18:58:47 +0100
commit907dfa6fd90c5cd20e872ba0d9c3d71cd63c318c (patch)
treee6b5da146fadce80d9f31f44631b4d5c0cddfbeb
parentc81d03de5df49d352e3f76890d08d2c30a4acac9 (diff)
downloadalgdat-907dfa6fd90c5cd20e872ba0d9c3d71cd63c318c.tar.gz
add `make debug`
this will first run `make clean` and then compile everything with -O0 -g compile flag
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4cbf89a..fcb83bb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
-CFLAGS=-g -O2 -Wall -Wextra -Wvla
+CFLAGS=-O2 -Wall -Wextra -Wvla --std=c99
CC=gcc
AR=ar
-PROG= oving1
+PROG= oving1 oving2
all: $(PROG)
+debug : CFLAGS += -O0 -g
+debug : clean all
+
LIB_OBJS=stack.o queue.o llist.o io.o misc.o
LIB_FILE=libalgdat.a