Windows build is fully working
This commit is contained in:
parent
8955223c43
commit
83e4aef163
6 changed files with 370 additions and 428 deletions
15
Makefile
15
Makefile
|
@ -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)
|
||||
|
|
|
@ -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}{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}{BLOCK} {GREEN}{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK} {BLOCK_VERTICAL}
|
||||
{RED}{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{GREEN}{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}
|
||||
{BLUE}{BLOCK_VERTICAL} {YELLOW} {BLOCK_VERTICAL} {BLOCK_VERTICAL}
|
||||
{BLUE}{BLOCK_VERTICAL} {BLOCK} {YELLOW} {BLOCK} {BLOCK} {BLOCK_VERTICAL}
|
||||
{BLUE}{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK}{YELLOW}{BLOCK_VERTICAL}{BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
|
||||
{BLUE}{BLOCK_VERTICAL}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{YELLOW}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK_VERTICAL}
|
||||
|
|
9
res/ascii/windows.txt.old
Normal file
9
res/ascii/windows.txt.old
Normal file
|
@ -0,0 +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
|
9
res/ascii/windows_sum.txt
Normal file
9
res/ascii/windows_sum.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
{SPRING_GREEN}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}
|
||||
{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {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_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}
|
685
uwufetch.c
685
uwufetch.c
File diff suppressed because it is too large
Load diff
BIN
uwufetch.exe
Normal file
BIN
uwufetch.exe
Normal file
Binary file not shown.
Loading…
Reference in a new issue