diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,11 +1,15 @@ CC = gcc IN = nm.c OUT = nshm -LIBS = -lreadline -OPTS = -O0 -g -Wall -Wextra -pedantic +LIBS = -lreadline +OPTS = -O2 -Wall -Wextra -pedantic +OPTSDBG = -O0 -g -Wall -Wextra -pedantic + +debug: + $(CC) -o$(OUT) $(LIBS) $(OPTSDBG) $(IN) all: - $(CC) -o$(OUT) $(LIBS) $(OPTS) $(IN) + $(CC) -o$(OUT) $(LIBS) $(OPTS) $(IN) run: all ./$(OUT) |