Windows build is fully working

This commit is contained in:
TheDarkBug 2021-11-01 16:48:54 +01:00
parent 8955223c43
commit 83e4aef163
6 changed files with 370 additions and 428 deletions

View file

@ -2,6 +2,8 @@ NAME = uwufetch
FILES = uwufetch.c
CFLAGS = -O3
CFLAGS_DEBUG = -Wall -Wextra -g -pthread
CC = cc
ifeq ($(shell uname), Linux)
PREFIX = /usr/bin
LIBDIR = /usr/lib
@ -16,18 +18,21 @@ else ifeq ($(shell uname), FreeBSD)
PREFIX = /usr/bin
LIBDIR = /usr/lib
MANDIR = /usr/share/man/man1
else ifeq ($(shell uname), windows32)
CC = gcc
CFLAGS += -D__WINDOWS__
CFLAGS_DEBUG += -D__WINDOWS__
PREFIX = "C:\Program Files"
LIBDIR =
MANDIR =
endif
CC = cc
build: $(FILES)
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
debug:
@clear
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
./uwufetch
./$(NAME)
install:
mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR)

View file

@ -1,9 +1,9 @@
{BLUE}MMMMMMM MMMMMMM
M ^ M M ^ M
M M M M
MMMMMMM MMMMMMM
MMMMMMM MMMMMMM
M W W W M
M WW WW M
MMMMMMM MMMMMMM
{RED}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{GREEN}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}
{RED}{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {GREEN}{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {BLOCK_VERTICAL}
{RED}{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK} {GREEN}{BLOCK_VERTICAL} {BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
{RED}{BL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K_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {BLOCK_VERTICAL}
{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK} {BLOCK_VERTICAL} {BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}{BLOCK} {BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK} {BLOCK_VERTICAL}
{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}
{BLOCK_VERTICAL} {BLOCK_VERTICAL} {BLOCK_VERTICAL}
{BLOCK_VERTICAL} {BLOCK} {BLOCK} {BLOCK} {BLOCK_VERTICAL}
{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK}{BLOCK_VERTICAL}{BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}

File diff suppressed because it is too large Load diff

BIN
uwufetch.exe Normal file

Binary file not shown.