aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9558fc996091dfb05fdd2662def748c21d2c4f74 (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=sha2.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)