From 8f4aed07648dc5351d5218ff2828ee0c60b30c93 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 10 Apr 2023 18:37:01 -0400 Subject: [PATCH] update makefile target names, remove broken img --- .gitmodules | 2 +- Makefile | 22 +++++++++++++--------- README.md | 7 +++++++ config.json | 4 ++-- lib/sb | 2 +- shell.html | 3 +-- 6 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.gitmodules b/.gitmodules index d5cb0d2..fbb5703 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "lib/sb"] path = lib/sb - url = https://git.nugget.fun/nugget/sb.git + url = https://open.shampoo.ooo/shampoo/spacebox diff --git a/Makefile b/Makefile index 6886a90..f2b7f74 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ SB_LIB_DIR := $(SB_DIR)lib/ SDLGFX2_DIR := $(SB_LIB_DIR)sdl2-gfx/ GLEW_DIR := $(SB_LIB_DIR)glew/ +# C and C++ compiler commands +CC := clang +CXX := clang++ + # Location of SDL config program SDLCONFIG := $(HOME)/local/sdl/bin/sdl2-config @@ -68,10 +72,10 @@ $(SRC_DIR)Pepy.o : $(SRC_H_FILES) $(SB_H_FILES) # Linux build # ############### -linux : CFLAGS = -g -Wall -Wextra -O0 -fPIE -c -I$(SB_LIB_DIR) -I$(SB_SRC_DIR) $(SDL_CFLAGS) -linux : CPP_FLAGS = $(CFLAGS) --std=c++17 -linux : LFLAGS = $(SDL_LFLAGS) -fPIE -lpthread -lGL -lGLESv2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lstdc++fs -linux : $(GLEW_DIR)glew.o $(addprefix $(SDLGFX2_DIR),SDL2_rotozoom.o SDL2_gfxPrimitives.o) \ +pepy : CFLAGS = -g -Wall -Wextra -O0 -fPIE -c -I$(SB_LIB_DIR) -I$(SB_SRC_DIR) $(SDL_CFLAGS) +pepy : CPP_FLAGS = $(CFLAGS) --std=c++17 +pepy : LFLAGS = $(SDL_LFLAGS) -fPIE -lpthread -lGL -lGLESv2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lstdc++fs +pepy : $(GLEW_DIR)glew.o $(addprefix $(SDLGFX2_DIR),SDL2_rotozoom.o SDL2_gfxPrimitives.o) \ $(SB_O_FILES) $(SRC_O_FILES) $(CREATE_FONT_SYMLINK) $(CXX) $^ $(LFLAGS) -D__LINUX__ -o pepy @@ -90,11 +94,11 @@ EMSCRIPTEN_LFLAGS = -s MIN_WEBGL_VERSION=2 -s EXPORTED_FUNCTIONS="['_main']" -s EMSCRIPTEN_PRELOADS = --preload-file "BPmono.ttf"@/ --preload-file "config.json"@/ --preload-file "resource/"@/"resource/" \ --preload-file "src/shader.vert"@/"src/" --preload-file "src/shader.frag"@/"src/" -emscripten : CC = $(EMSCRIPTENHOME)/emcc -emscripten : CXX = $(EMSCRIPTENHOME)/em++ -emscripten : CFLAGS = $(EMSCRIPTEN_CFLAGS) -emscripten : CPP_FLAGS = $(CFLAGS) --std=c++17 -emscripten : $(addprefix $(SDLGFX2_DIR),SDL2_rotozoom.o SDL2_gfxPrimitives.o) $(SB_O_FILES) $(SRC_O_FILES) +index.html : CC = $(EMSCRIPTENHOME)/emcc +index.html : CXX = $(EMSCRIPTENHOME)/em++ +index.html : CFLAGS = $(EMSCRIPTEN_CFLAGS) +index.html : CPP_FLAGS = $(CFLAGS) --std=c++17 +index.html : $(addprefix $(SDLGFX2_DIR),SDL2_rotozoom.o SDL2_gfxPrimitives.o) $(SB_O_FILES) $(SRC_O_FILES) $(CREATE_FONT_SYMLINK) $(CXX) $^ $(CPP_FLAGS) $(EMSCRIPTEN_LFLAGS) $(EMSCRIPTEN_PRELOADS) -o "index.html" diff --git a/README.md b/README.md index d0580dc..915dbc2 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ About This is the first game planned for an online arcade at . It is also one of the first games made with the [SPACEBOX][] game framework. The initial prototype was made for [UWILLNOTLAST10SECONDS][]. +### Pepy is a... + +* media apparatus +* bubble +* lottery ball +* technological marvel + Contact ------- diff --git a/config.json b/config.json index c042a6d..77051f7 100644 --- a/config.json +++ b/config.json @@ -12,7 +12,7 @@ { "screenshot-directory": "local/screenshots", "video-directory": "local/video", - "enabled": true, + "enabled": false, "write-mp4": true, "video-frame-length": 33.333, "max-video-memory": 2000, @@ -20,7 +20,7 @@ }, "configuration": { - "auto-refresh": true + "auto-refresh": false }, "keys": { diff --git a/lib/sb b/lib/sb index dc2141c..ecce532 160000 --- a/lib/sb +++ b/lib/sb @@ -1 +1 @@ -Subproject commit dc2141c2c441d92b35979f3dac0d5d7e74e440d6 +Subproject commit ecce532abfac9198e61e8975f234a19239f74020 diff --git a/shell.html b/shell.html index 922c103..fb801e0 100644 --- a/shell.html +++ b/shell.html @@ -67,8 +67,7 @@
- Pepy, it's cuckoo time! Please make it as big as possible using the arrow keys in - 10 seconds. + Pepy, it's cuckoo time! Please make it as big as possible using the arrow keys in 10 seconds.