summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 16bfc92ebe9c277ac9f109d0bcfbbdef66f33d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC = gcc
CFLAGS = -march=native -Wall -Wpedantic -lcrypto
SOURCE = onetimebluh
TARGET = otbluh
PREFIX = /usr

all: $(SOURCE)

$(SOURCE): src/$(SOURCE).c
	mkdir build
	$(CC) $(CFLAGS) -o build/$(TARGET) src/$(SOURCE).c -v

install:
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install build/$(TARGET) $(DESTDIR)$(PREFIX)/bin

clean: 
	$(RM) -r build