aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 25e3b41b32493333377e77d34c2ddfb12489adf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-std=c11 -W -Wall -Wextra -pedantic -O3 -march=native
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)