aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 947ba94c3089550b0bfe4f713bd35bf59cb2e5d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
NAME = passgen
PREFIX = $(HOME)/.local

CC = gcc
CFLAGS += -std=c99 -Wall -Wextra -Wshadow -pedantic

default: $(NAME)

$(NAME): $(NAME).c config.h
	$(CC) $(CFLAGS) -o $(NAME) $(NAME).c

install: $(NAME)
	install -d $(DESTDIR)$(PREFIX)/bin/
	install -m 755 $(NAME) $(DESTDIR)$(PREFIX)/bin/

clean: 
	rm -f *.o
	rm -f $(NAME)