aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 050a149eeeb55e5edf82e8cd1b7fc77364e80700 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                        
         


                                                   
 

                                             
 


                                                        


                  
                      
NAME = passgen
PREFIX = $(HOME)/.local

CC = gcc
CFLAGS += -Wall -Wextra -Wshadow -Werror -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)