aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c4bc5c6a0d12a68c7f743ee3dbea3437ecdf86a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS=-W -Wall -Wextra -pedantic -O3 -std=c11
OBJS=sha256.o main.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) ''