# Makefile for TrueRNG C implementation

CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -O2
TARGET = truerng
SOURCE = main.c

all: $(TARGET)

$(TARGET): $(SOURCE)
	$(CC) $(CFLAGS) -o $(TARGET) $(SOURCE)

clean:
	rm -f $(TARGET)

install: $(TARGET)
	sudo cp $(TARGET) /usr/local/bin/

.PHONY: all clean install