Added new config options, disabled optimization in makefile to prevent segmentation fault (i have no idea)

This commit is contained in:
TheDarkBug 2021-04-14 12:33:05 +02:00
parent 69fe7f2614
commit 3ce44faf68
4 changed files with 73 additions and 26 deletions

View file

@ -1,6 +1,6 @@
NAME = uwufetch
FILES = uwufetch.c
CFLAGS = -O3
CFLAGS =
CFLAGS_DEBUG = -Wall -Wextra
PREFIX = /usr/bin
CC = cc
@ -9,12 +9,12 @@ MAN_COMPILER = pandoc
build: $(FILES)
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
$(MAN_COMPILER) $(NAME)_man.md -st man -o $(NAME).1
@gzip $(NAME).1
@#gzip $(NAME).1
debug:
@clear
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
./uwufetch --config ~/.config/uwufetch/config
./uwufetch
install:
cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME)