aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 60f10dc7ac0f0dd8bea08a3f1461e9dba0df443a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-W -Wall -Wextra -pedantic -O3 -std=c11
OBJS=sha256.o main.o tests.o
APP=sha256

.PHONY=all clean

all: $(APP)

$(APP): $(OBJS)
	$(CC) $(CFLAGS) -o $(APP) $(OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c $<

clean:
	$(RM) $(OBJS) $(APP)

test: $(APP)
	@# ./$(APP) '' 'foobar'
	@./$(APP)