diff --git a/Makefile b/Makefile index b0035cdad..729294caa 100644 --- a/Makefile +++ b/Makefile @@ -298,7 +298,9 @@ $(BUILD_DIRS): # Main executable (typically just 'ClassiCube' or 'ClassiCube.exe') $(ENAME): $(BUILD_DIRS) $(OBJECTS) $(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS) - + @echo "----------------------------------------------------" + @echo "Successfully compiled executable file: $(ENAME)" + @echo "----------------------------------------------------" # macOS app bundle $(ENAME).app : $(ENAME) diff --git a/misc/32x/Makefile b/misc/32x/Makefile index 5dbf7a69d..464beabd8 100644 --- a/misc/32x/Makefile +++ b/misc/32x/Makefile @@ -32,7 +32,7 @@ RM = rm -f TARGET = ClassiCube-32x LIBS = $(LIBPATH) -lc -lgcc -lgcc-Os-4-200 -lnosys -BUILD_DIR = build-32x +BUILD_DIR = build/32x SOURCE_DIRS = src misc/32x C_FILES = $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c)) diff --git a/misc/3ds/Makefile b/misc/3ds/Makefile index f0b91f031..22ebaa504 100644 --- a/misc/3ds/Makefile +++ b/misc/3ds/Makefile @@ -15,7 +15,7 @@ include $(DEVKITARM)/3ds_rules APP_ICON := $(TOPDIR)/misc/3ds/icon.png APP_TITLE := ClassiCube APP_DESCRIPTION := Simple block building sandbox -APP_AUTHOR := UnknownShadow200 +APP_AUTHOR := ClassiCube team TARGET := ClassiCube-3ds #--------------------------------------------------------------------------------- diff --git a/misc/dreamcast/IP.BIN b/misc/dreamcast/IP.BIN index 4fb6e83c7..d49f4cafd 100644 Binary files a/misc/dreamcast/IP.BIN and b/misc/dreamcast/IP.BIN differ diff --git a/misc/dreamcast/Makefile b/misc/dreamcast/Makefile index e0f61033e..ab6d3d996 100644 --- a/misc/dreamcast/Makefile +++ b/misc/dreamcast/Makefile @@ -1,4 +1,4 @@ -BUILD_DIR := build-dc +BUILD_DIR := build/dc SOURCE_DIRS := src third_party/bearssl/src misc/dreamcast TARGET := ClassiCube-dc diff --git a/misc/dreamcast/ip.txt b/misc/dreamcast/ip.txt index 5b7f551ac..e9906e791 100644 --- a/misc/dreamcast/ip.txt +++ b/misc/dreamcast/ip.txt @@ -1,3 +1,3 @@ Version : V1.360 -SW Maker Name : UnknownShadow200 -Game Title : ClassiCube Dreamcast \ No newline at end of file +SW Maker Name : ClassiCube team +Game Title : ClassiCube diff --git a/misc/ds/Makefile b/misc/ds/Makefile index ccbea3332..3c1871503 100644 --- a/misc/ds/Makefile +++ b/misc/ds/Makefile @@ -6,7 +6,7 @@ export BLOCKSDSEXT ?= /opt/wonderful/thirdparty/blocksds/external GAME_TITLE := ClassiCube GAME_SUBTITLE := Built with BlocksDS -GAME_AUTHOR := UnknownShadow200 +GAME_AUTHOR := ClassiCube team GAME_ICON := misc/ds/icon.bmp GAME_FULL_TITLE := $(GAME_TITLE);$(GAME_SUBTITLE);$(GAME_AUTHOR) @@ -22,10 +22,10 @@ SDIMAGE := image.bin # Build artfacts # -------------- ifdef BUILD_DSI -BUILDDIR := build-dsi +BUILDDIR := build/dsi ROM := ClassiCube-dsi.nds else -BUILDDIR := build-nds +BUILDDIR := build/nds ROM := ClassiCube-nds.nds endif diff --git a/misc/ds/Makefile.arm7 b/misc/ds/Makefile.arm7 index b926ccc9d..b486d323b 100644 --- a/misc/ds/Makefile.arm7 +++ b/misc/ds/Makefile.arm7 @@ -13,11 +13,11 @@ DSIWIFI := third_party/dsiwifi ifdef BUILD_DSI SOURCEDIRS += $(DSIWIFI)/arm_iop/source $(DSIWIFI)/common/source $(DSIWIFI)/arm_iop/source/ath $(DSIWIFI)/arm_iop/source/crypto $(DSIWIFI)/arm_iop/source/ieee INCLUDEDIRS += $(DSIWIFI)/arm_iop/source $(DSIWIFI)/arm_iop/include $(DSIWIFI)/common/source $(DSIWIFI)/include $(DSIWIFI)/include/lwip -BUILDDIR := build-dsi +BUILDDIR := build/dsi LIBS := -lc -lnds7 LIBDIRS := $(BLOCKSDS)/libs/libnds else -BUILDDIR := build-nds +BUILDDIR := build/nds LIBS := -lc -lnds7 -ldswifi7 LIBDIRS := $(BLOCKSDS)/libs/libnds $(BLOCKSDS)/libs/dswifi endif diff --git a/misc/ds/Makefile.arm9 b/misc/ds/Makefile.arm9 index 33b0c7ba5..4a5dd7403 100644 --- a/misc/ds/Makefile.arm9 +++ b/misc/ds/Makefile.arm9 @@ -13,12 +13,12 @@ DSIWIFI := third_party/dsiwifi ifdef BUILD_DSI SOURCEDIRS += $(DSIWIFI)/arm_host/source $(DSIWIFI)/common/source $(DSIWIFI)/arm_host/source/nds $(DSIWIFI)/arm_host/source/lwip $(DSIWIFI)/arm_host/source/lwip/ipv4 $(DSIWIFI)/arm_host/source/lwip/ipv6 $(DSIWIFI)/arm_host/source/lwip/netif $(DSIWIFI)/arm_host/source/lwip/netif/ppp $(DSIWIFI)/arm_host/source/lwip/api INCLUDEDIRS += $(DSIWIFI)/arm_host/include $(DSIWIFI)/common/source $(DSIWIFI)/include $(DSIWIFI)/include/lwip -BUILDDIR := build-dsi +BUILDDIR := build/dsi DEFINES := -DPLAT_NDS -DBUILD_DSI LIBS := -lnds9 -lc LIBDIRS := $(BLOCKSDS)/libs/libnds else -BUILDDIR := build-nds +BUILDDIR := build/nds DEFINES := -DPLAT_NDS LIBS := -ldswifi9 -lnds9 -lc LIBDIRS := $(BLOCKSDS)/libs/dswifi $(BLOCKSDS)/libs/libnds diff --git a/misc/macclassic/Makefile_68k b/misc/macclassic/Makefile_68k index a57f59820..070a6ba64 100644 --- a/misc/macclassic/Makefile_68k +++ b/misc/macclassic/Makefile_68k @@ -14,11 +14,11 @@ REZFLAGS=-I$(RINCLUDES) ifdef ARCH_68040 TARGET := ClassiCube-68040 - BUILD_DIR := build-68040 + BUILD_DIR := build/mac_68040 CFLAGS += -march=68040 else TARGET := ClassiCube-68k - BUILD_DIR := build-68k + BUILD_DIR := build/mac_68k CFLAGS += -DCC_BUILD_NOFPU -DCC_BUILD_TINYMEM endif diff --git a/misc/macclassic/Makefile_ppc b/misc/macclassic/Makefile_ppc index ba283c042..282ff6ee2 100644 --- a/misc/macclassic/Makefile_ppc +++ b/misc/macclassic/Makefile_ppc @@ -14,7 +14,7 @@ RINCLUDES=$(PREFIX)/RIncludes REZFLAGS=-I$(RINCLUDES) TARGET := ClassiCube-ppc -BUILD_DIR := build-ppc +BUILD_DIR := build/mac_ppc SOURCE_DIR := src C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c) C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES)) diff --git a/misc/os2/Makefile b/misc/os2/Makefile index 8c881960c..f9fcdf440 100644 --- a/misc/os2/Makefile +++ b/misc/os2/Makefile @@ -1,41 +1,10 @@ -#-------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# -# NO_ICON: if set to anything, do not use icon. -# NO_NACP: if set to anything, no .nacp file is generated. -# APP_TITLE is the name of the app stored in the .nacp file (Optional) -# APP_AUTHOR is the author of the app stored in the .nacp file (Optional) -# APP_VERSION is the version of the app stored in the .nacp file (Optional) -# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional) -# ICON is the filename of the icon (.jpg), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .jpg -# - icon.jpg -# - /default_icon.jpg -# -# CONFIG_JSON is the filename of the NPDM config file (.json), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .json -# - config.json -# If a JSON file is provided or autodetected, an ExeFS PFS0 (.nsp) is built instead -# of a homebrew executable (.nro). This is intended to be used for sysmodules. -# NACP building is skipped as well. -#--------------------------------------------------------------------------------- TARGET := ClassiCube -BUILD_DIR := build -SOURCE_DIR:= src -DATA := data +BUILD_DIR := build/os2 +SOURCE_DIR := src + C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c) C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES)) - -OBJECTS := $(C_OBJECTS) $(BUILD_DIR)/$(TARGET).res misc/os2/classicube.def -ENAME = ClassiCube -DEL = rm -f -APP_TITLE := ClassiCube -APP_AUTHOR := UnknownShadow200 +OBJECTS := $(C_OBJECTS) $(BUILD_DIR)/$(TARGET).res misc/os2/classicube.def #--------------------------------------------------------------------------------- # options for code generation @@ -43,7 +12,7 @@ APP_AUTHOR := UnknownShadow200 CC := gcc CFLAGS := -pipe -Wno-attributes -fno-math-errno -O3 -g -mtune=pentium4 -msse2 -march=i686 -idirafter /@unixroot/usr/include/os2tk45 -DOS2 LDFLAGS := -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -Zlinker DISABLE -Zlinker 1121 -LIBS := -lcx -lmmpm2 -lpthread /@unixroot/usr/local/lib/kai.a +LIBS := -lcx -lmmpm2 -lpthread /@unixroot/usr/local/lib/kai.a $(TARGET).exe: $(BUILD_DIR) $(OBJECTS) $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) @@ -51,7 +20,7 @@ $(TARGET).exe: $(BUILD_DIR) $(OBJECTS) $(BUILD_DIR): mkdir -p $(BUILD_DIR) -$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c +$(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c $(CC) $(CFLAGS) -c $< -o $@ $(BUILD_DIR)/$(TARGET).res: misc/os2/$(TARGET).rc misc/os2/$(TARGET).ico diff --git a/misc/ps1/Makefile b/misc/ps1/Makefile index b57541e8b..6a1c2ba04 100644 --- a/misc/ps1/Makefile +++ b/misc/ps1/Makefile @@ -1,4 +1,4 @@ -BUILD_DIR := build-ps1 +BUILD_DIR := build/ps1 SOURCE_DIRS := src TARGET := ClassiCube-ps1 diff --git a/misc/psp/Makefile b/misc/psp/Makefile index 47aa03925..afad7eae5 100644 --- a/misc/psp/Makefile +++ b/misc/psp/Makefile @@ -2,7 +2,7 @@ TARGET = ClassiCube-psp PSP_EBOOT_TITLE = ClassiCube PSP_EBOOT_ICON = misc/psp/ICON0.png -BUILD_DIR := build-psp +BUILD_DIR := build/psp SOURCE_DIRS := src third_party/bearssl/src C_FILES := $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c)) diff --git a/misc/switch/Makefile b/misc/switch/Makefile index 9d1b3a8c3..9b540fd43 100644 --- a/misc/switch/Makefile +++ b/misc/switch/Makefile @@ -38,14 +38,14 @@ include $(DEVKITPRO)/libnx/switch_rules # NACP building is skipped as well. #--------------------------------------------------------------------------------- TARGET := ClassiCube-switch -BUILD := build-switch +BUILD := build/switch SOURCES := src misc/switch third_party/bearssl/src DATA := data INCLUDES := third_party/bearssl/inc #ROMFS := romfs APP_TITLE := ClassiCube -APP_AUTHOR := UnknownShadow200 +APP_AUTHOR := ClassiCube team ICON := misc/switch/icon.jpg #--------------------------------------------------------------------------------- diff --git a/misc/vita/Makefile b/misc/vita/Makefile index a979c9660..b2d7cb80a 100644 --- a/misc/vita/Makefile +++ b/misc/vita/Makefile @@ -2,7 +2,7 @@ PROJECT_TITLE := ClassiCube PROJECT_TITLEID := CUBE00200 TARGET := ClassiCube-vita -BUILD_DIR := build-vita +BUILD_DIR := build/vita SOURCE_DIRS := src third_party/bearssl/src CFLAGS += -Wl,-q -Ithird_party/bearssl/inc -O1 diff --git a/readme.md b/readme.md index 37a50af41..0193bf78b 100644 --- a/readme.md +++ b/readme.md @@ -340,7 +340,7 @@ Run `make saturn`. You'll need [libyaul](https://github.com/yaul-org/libyaul) 1. Install `libexecinfo`, `curl` and `openal-soft` packages if needed 2. Run either: * `make netbsd` or - * `cc src/*.c -o ClassiCube -I /usr/X11R7/include -I /usr/pkg/include -L /usr/X11R7/lib -L /usr/pkg/lib -lpthread -lX11 -lXi -lGL -lexecinfo` + * `cc src/*.c -o ClassiCube -I /usr/X11R7/include -I /usr/pkg/include -L /usr/X11R7/lib -L /usr/pkg/lib -lpthread -lX11 -lXi -lGL -lexecinfo` #### DragonflyBSD