Windows builds!
This commit is contained in:
parent
14fd15f776
commit
4a52d509c9
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1 @@
|
||||
raylib.h
|
||||
|
||||
*/data/*.c
|
3
01_text_adventure/.gitignore
vendored
3
01_text_adventure/.gitignore
vendored
@ -1 +1,2 @@
|
||||
fatal_text_adventure_linux
|
||||
fatal_text_adventure_linux
|
||||
fatal_text_adventure_windows.exe
|
@ -1,12 +1,25 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall -lraylib -lm -lpthread -ldl -lX11
|
||||
|
||||
WIN_CC=x86_64-w64-mingw32-gcc
|
||||
WIN_LIB=-L../lib -I../include -Wall -lraylib -lopengl32 -lgdi32 -lwinmm -lcomdlg32 -lole32
|
||||
WIN_CFLAGS=-Wall -lraylib -lm -lpthread
|
||||
|
||||
GAME=fatal_text_adventure
|
||||
DATA_C=data/actions.c data/rooms.c data/room_ins.c data/words.c data/flags.c data/items.c
|
||||
|
||||
BUTLER=../butler/butler
|
||||
ITCH_CHANNEL=01-text-adventure-linux-x64-amd
|
||||
ITCH_CHANNEL=01-text-adventure
|
||||
ITCH_CHANNEL_LINUX=$(ITCH_CHANNEL)-linux-x64
|
||||
ITCH_CHANNEL_WINDOWS=$(ITCH_CHANNEL)-windows-x64
|
||||
|
||||
.PHONY: clean run butler_upload
|
||||
|
||||
fatal_text_adventure_linux: data/actions.c data/rooms.c data/room_ins.c data/words.c data/flags.c data/items.c *.c
|
||||
$(CC) *.c $(CFLAGS) -o fatal_text_adventure_linux
|
||||
$(GAME)_linux: $(DATA_C) *.c
|
||||
$(CC) *.c $(CFLAGS) -o $(GAME)_linux
|
||||
|
||||
$(GAME)_windows.exe: $(DATA_C) *.c
|
||||
$(WIN_CC) *.c $(WIN_LIB) $(WIN_CFLAGS) -o $(GAME)_windows.exe
|
||||
|
||||
data/%.c: data/%.txt
|
||||
echo "char *data_$*_txt = " > data/$*.c
|
||||
@ -16,12 +29,17 @@ data/%.c: data/%.txt
|
||||
perl -pe 's/$$/\\n"/' >> data/$*.c
|
||||
echo ";" >> data/$*.c
|
||||
|
||||
run: fatal_text_adventure_linux
|
||||
./fatal_text_adventure_linux
|
||||
run: $(GAME)_linux
|
||||
./$(GAME)_linux
|
||||
|
||||
run_win: $(GAME)_windows.exe
|
||||
wine $(GAME)_windows.exe
|
||||
|
||||
clean:
|
||||
rm -f ./fatal_text_adventure_linux
|
||||
rm -f ./$(GAME)_linux
|
||||
rm -f ./$(GAME)_windows.exe
|
||||
rm -f ./data/*.c
|
||||
|
||||
butler_upload: fatal_text_adventure_linux
|
||||
$(BUTLER) push ./fatal_text_adventure_linux bassguitarbill/fatal-distractions:$(ITCH_CHANNEL)
|
||||
butler_upload: $(GAME)_linux $(GAME)_windows
|
||||
$(BUTLER) push ./$(GAME)_linux bassguitarbill/fatal-distractions:$(ITCH_CHANNEL_LINUX)
|
||||
$(BUTLER) push ./$(GAME)_windows.exe bassguitarbill/fatal-distractions:$(ITCH_CHANNEL_WINDOWS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "../raylib.h"
|
||||
#include <raylib.h>
|
||||
#include "input.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "log.h"
|
||||
#include "../raylib.h"
|
||||
#include <raylib.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../raylib.h"
|
||||
#include <raylib.h>
|
||||
|
||||
#include "game.h"
|
||||
|
||||
|
1708
include/raylib.h
Normal file
1708
include/raylib.h
Normal file
File diff suppressed because it is too large
Load Diff
2941
include/raymath.h
Normal file
2941
include/raymath.h
Normal file
File diff suppressed because it is too large
Load Diff
5262
include/rlgl.h
Normal file
5262
include/rlgl.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
lib/glfw3.dll
Normal file
BIN
lib/glfw3.dll
Normal file
Binary file not shown.
BIN
lib/libglfw3.a
Normal file
BIN
lib/libglfw3.a
Normal file
Binary file not shown.
BIN
lib/libglfw3dll.a
Normal file
BIN
lib/libglfw3dll.a
Normal file
Binary file not shown.
BIN
lib/libraylib.a
Normal file
BIN
lib/libraylib.a
Normal file
Binary file not shown.
BIN
lib/libraylibdll.a
Normal file
BIN
lib/libraylibdll.a
Normal file
Binary file not shown.
BIN
lib/raylib.dll
Normal file
BIN
lib/raylib.dll
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user