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
|
FILES = uwufetch.c
|
||||||
CFLAGS = -O3
|
CFLAGS = -O3
|
||||||
CFLAGS_DEBUG = -Wall -Wextra -g -pthread
|
CFLAGS_DEBUG = -Wall -Wextra -g -pthread
|
||||||
|
CC = cc
|
||||||
|
|
||||||
ifeq ($(shell uname), Linux)
|
ifeq ($(shell uname), Linux)
|
||||||
PREFIX = /usr/bin
|
PREFIX = /usr/bin
|
||||||
LIBDIR = /usr/lib
|
LIBDIR = /usr/lib
|
||||||
|
@ -16,18 +18,21 @@ else ifeq ($(shell uname), FreeBSD)
|
||||||
PREFIX = /usr/bin
|
PREFIX = /usr/bin
|
||||||
LIBDIR = /usr/lib
|
LIBDIR = /usr/lib
|
||||||
MANDIR = /usr/share/man/man1
|
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
|
endif
|
||||||
|
|
||||||
CC = cc
|
|
||||||
|
|
||||||
|
|
||||||
build: $(FILES)
|
build: $(FILES)
|
||||||
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
|
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
@clear
|
|
||||||
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
|
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
|
||||||
./uwufetch
|
./$(NAME)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR)
|
mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{BLUE}MMMMMMM MMMMMMM
|
{RED}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{GREEN}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}{BLOCK}
|
||||||
M ^ M M ^ M
|
{RED}{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {GREEN}{BLOCK_VERTICAL} {BLOCK}{BLOCK}{BLOCK} {BLOCK_VERTICAL}
|
||||||
M M M M
|
{RED}{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK} {GREEN}{BLOCK_VERTICAL} {BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
|
||||||
MMMMMMM MMMMMMM
|
{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}
|
||||||
MMMMMMM MMMMMMM
|
{BLUE}{BLOCK_VERTICAL} {YELLOW} {BLOCK_VERTICAL} {BLOCK_VERTICAL}
|
||||||
M W W W M
|
{BLUE}{BLOCK_VERTICAL} {BLOCK} {YELLOW} {BLOCK} {BLOCK} {BLOCK_VERTICAL}
|
||||||
M WW WW M
|
{BLUE}{BLOCK_VERTICAL} {BLOCK_VERTICAL}{BLOCK}{YELLOW}{BLOCK_VERTICAL}{BLOCK}{BLOCK_VERTICAL} {BLOCK_VERTICAL}
|
||||||
MMMMMMM MMMMMMM
|
{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}
|
747
uwufetch.c
747
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