summaryrefslogtreecommitdiff
path: root/Makefile
blob: 37d784003fb4acce683f51e523268e543e05d4af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC      = gcc
IN      = nm.c
OUT     = nshm
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) 

run: all
	./$(OUT)

clean:
	rm $(OUT)