mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-03 18:57:27 -04:00
Further makefile tidyup
This commit is contained in:
parent
2d1b480d68
commit
273f249ec4
4
Makefile
4
Makefile
@ -298,7 +298,9 @@ $(BUILD_DIRS):
|
|||||||
# Main executable (typically just 'ClassiCube' or 'ClassiCube.exe')
|
# Main executable (typically just 'ClassiCube' or 'ClassiCube.exe')
|
||||||
$(ENAME): $(BUILD_DIRS) $(OBJECTS)
|
$(ENAME): $(BUILD_DIRS) $(OBJECTS)
|
||||||
$(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
$(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
||||||
|
@echo "----------------------------------------------------"
|
||||||
|
@echo "Successfully compiled executable file: $(ENAME)"
|
||||||
|
@echo "----------------------------------------------------"
|
||||||
|
|
||||||
# macOS app bundle
|
# macOS app bundle
|
||||||
$(ENAME).app : $(ENAME)
|
$(ENAME).app : $(ENAME)
|
||||||
|
@ -32,7 +32,7 @@ RM = rm -f
|
|||||||
|
|
||||||
TARGET = ClassiCube-32x
|
TARGET = ClassiCube-32x
|
||||||
LIBS = $(LIBPATH) -lc -lgcc -lgcc-Os-4-200 -lnosys
|
LIBS = $(LIBPATH) -lc -lgcc -lgcc-Os-4-200 -lnosys
|
||||||
BUILD_DIR = build-32x
|
BUILD_DIR = build/32x
|
||||||
|
|
||||||
SOURCE_DIRS = src misc/32x
|
SOURCE_DIRS = src misc/32x
|
||||||
C_FILES = $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c))
|
C_FILES = $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c))
|
||||||
|
@ -15,7 +15,7 @@ include $(DEVKITARM)/3ds_rules
|
|||||||
APP_ICON := $(TOPDIR)/misc/3ds/icon.png
|
APP_ICON := $(TOPDIR)/misc/3ds/icon.png
|
||||||
APP_TITLE := ClassiCube
|
APP_TITLE := ClassiCube
|
||||||
APP_DESCRIPTION := Simple block building sandbox
|
APP_DESCRIPTION := Simple block building sandbox
|
||||||
APP_AUTHOR := UnknownShadow200
|
APP_AUTHOR := ClassiCube team
|
||||||
TARGET := ClassiCube-3ds
|
TARGET := ClassiCube-3ds
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
BUILD_DIR := build-dc
|
BUILD_DIR := build/dc
|
||||||
SOURCE_DIRS := src third_party/bearssl/src misc/dreamcast
|
SOURCE_DIRS := src third_party/bearssl/src misc/dreamcast
|
||||||
TARGET := ClassiCube-dc
|
TARGET := ClassiCube-dc
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Version : V1.360
|
Version : V1.360
|
||||||
SW Maker Name : UnknownShadow200
|
SW Maker Name : ClassiCube team
|
||||||
Game Title : ClassiCube Dreamcast
|
Game Title : ClassiCube
|
||||||
|
@ -6,7 +6,7 @@ export BLOCKSDSEXT ?= /opt/wonderful/thirdparty/blocksds/external
|
|||||||
|
|
||||||
GAME_TITLE := ClassiCube
|
GAME_TITLE := ClassiCube
|
||||||
GAME_SUBTITLE := Built with BlocksDS
|
GAME_SUBTITLE := Built with BlocksDS
|
||||||
GAME_AUTHOR := UnknownShadow200
|
GAME_AUTHOR := ClassiCube team
|
||||||
GAME_ICON := misc/ds/icon.bmp
|
GAME_ICON := misc/ds/icon.bmp
|
||||||
GAME_FULL_TITLE := $(GAME_TITLE);$(GAME_SUBTITLE);$(GAME_AUTHOR)
|
GAME_FULL_TITLE := $(GAME_TITLE);$(GAME_SUBTITLE);$(GAME_AUTHOR)
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ SDIMAGE := image.bin
|
|||||||
# Build artfacts
|
# Build artfacts
|
||||||
# --------------
|
# --------------
|
||||||
ifdef BUILD_DSI
|
ifdef BUILD_DSI
|
||||||
BUILDDIR := build-dsi
|
BUILDDIR := build/dsi
|
||||||
ROM := ClassiCube-dsi.nds
|
ROM := ClassiCube-dsi.nds
|
||||||
else
|
else
|
||||||
BUILDDIR := build-nds
|
BUILDDIR := build/nds
|
||||||
ROM := ClassiCube-nds.nds
|
ROM := ClassiCube-nds.nds
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -13,11 +13,11 @@ DSIWIFI := third_party/dsiwifi
|
|||||||
ifdef BUILD_DSI
|
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
|
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
|
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
|
LIBS := -lc -lnds7
|
||||||
LIBDIRS := $(BLOCKSDS)/libs/libnds
|
LIBDIRS := $(BLOCKSDS)/libs/libnds
|
||||||
else
|
else
|
||||||
BUILDDIR := build-nds
|
BUILDDIR := build/nds
|
||||||
LIBS := -lc -lnds7 -ldswifi7
|
LIBS := -lc -lnds7 -ldswifi7
|
||||||
LIBDIRS := $(BLOCKSDS)/libs/libnds $(BLOCKSDS)/libs/dswifi
|
LIBDIRS := $(BLOCKSDS)/libs/libnds $(BLOCKSDS)/libs/dswifi
|
||||||
endif
|
endif
|
||||||
|
@ -13,12 +13,12 @@ DSIWIFI := third_party/dsiwifi
|
|||||||
ifdef BUILD_DSI
|
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
|
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
|
INCLUDEDIRS += $(DSIWIFI)/arm_host/include $(DSIWIFI)/common/source $(DSIWIFI)/include $(DSIWIFI)/include/lwip
|
||||||
BUILDDIR := build-dsi
|
BUILDDIR := build/dsi
|
||||||
DEFINES := -DPLAT_NDS -DBUILD_DSI
|
DEFINES := -DPLAT_NDS -DBUILD_DSI
|
||||||
LIBS := -lnds9 -lc
|
LIBS := -lnds9 -lc
|
||||||
LIBDIRS := $(BLOCKSDS)/libs/libnds
|
LIBDIRS := $(BLOCKSDS)/libs/libnds
|
||||||
else
|
else
|
||||||
BUILDDIR := build-nds
|
BUILDDIR := build/nds
|
||||||
DEFINES := -DPLAT_NDS
|
DEFINES := -DPLAT_NDS
|
||||||
LIBS := -ldswifi9 -lnds9 -lc
|
LIBS := -ldswifi9 -lnds9 -lc
|
||||||
LIBDIRS := $(BLOCKSDS)/libs/dswifi $(BLOCKSDS)/libs/libnds
|
LIBDIRS := $(BLOCKSDS)/libs/dswifi $(BLOCKSDS)/libs/libnds
|
||||||
|
@ -14,11 +14,11 @@ REZFLAGS=-I$(RINCLUDES)
|
|||||||
|
|
||||||
ifdef ARCH_68040
|
ifdef ARCH_68040
|
||||||
TARGET := ClassiCube-68040
|
TARGET := ClassiCube-68040
|
||||||
BUILD_DIR := build-68040
|
BUILD_DIR := build/mac_68040
|
||||||
CFLAGS += -march=68040
|
CFLAGS += -march=68040
|
||||||
else
|
else
|
||||||
TARGET := ClassiCube-68k
|
TARGET := ClassiCube-68k
|
||||||
BUILD_DIR := build-68k
|
BUILD_DIR := build/mac_68k
|
||||||
CFLAGS += -DCC_BUILD_NOFPU -DCC_BUILD_TINYMEM
|
CFLAGS += -DCC_BUILD_NOFPU -DCC_BUILD_TINYMEM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ RINCLUDES=$(PREFIX)/RIncludes
|
|||||||
REZFLAGS=-I$(RINCLUDES)
|
REZFLAGS=-I$(RINCLUDES)
|
||||||
|
|
||||||
TARGET := ClassiCube-ppc
|
TARGET := ClassiCube-ppc
|
||||||
BUILD_DIR := build-ppc
|
BUILD_DIR := build/mac_ppc
|
||||||
SOURCE_DIR := src
|
SOURCE_DIR := src
|
||||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
||||||
|
@ -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):
|
|
||||||
# - <Project name>.jpg
|
|
||||||
# - icon.jpg
|
|
||||||
# - <libnx folder>/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):
|
|
||||||
# - <Project name>.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
|
TARGET := ClassiCube
|
||||||
BUILD_DIR := build
|
BUILD_DIR := build/os2
|
||||||
SOURCE_DIR:= src
|
SOURCE_DIR := src
|
||||||
DATA := data
|
|
||||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
||||||
|
OBJECTS := $(C_OBJECTS) $(BUILD_DIR)/$(TARGET).res misc/os2/classicube.def
|
||||||
OBJECTS := $(C_OBJECTS) $(BUILD_DIR)/$(TARGET).res misc/os2/classicube.def
|
|
||||||
ENAME = ClassiCube
|
|
||||||
DEL = rm -f
|
|
||||||
APP_TITLE := ClassiCube
|
|
||||||
APP_AUTHOR := UnknownShadow200
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation
|
||||||
@ -43,7 +12,7 @@ APP_AUTHOR := UnknownShadow200
|
|||||||
CC := gcc
|
CC := gcc
|
||||||
CFLAGS := -pipe -Wno-attributes -fno-math-errno -O3 -g -mtune=pentium4 -msse2 -march=i686 -idirafter /@unixroot/usr/include/os2tk45 -DOS2
|
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
|
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)
|
$(TARGET).exe: $(BUILD_DIR) $(OBJECTS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
||||||
@ -51,7 +20,7 @@ $(TARGET).exe: $(BUILD_DIR) $(OBJECTS)
|
|||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
|
|
||||||
$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c
|
$(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILD_DIR)/$(TARGET).res: misc/os2/$(TARGET).rc misc/os2/$(TARGET).ico
|
$(BUILD_DIR)/$(TARGET).res: misc/os2/$(TARGET).rc misc/os2/$(TARGET).ico
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
BUILD_DIR := build-ps1
|
BUILD_DIR := build/ps1
|
||||||
SOURCE_DIRS := src
|
SOURCE_DIRS := src
|
||||||
TARGET := ClassiCube-ps1
|
TARGET := ClassiCube-ps1
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ TARGET = ClassiCube-psp
|
|||||||
PSP_EBOOT_TITLE = ClassiCube
|
PSP_EBOOT_TITLE = ClassiCube
|
||||||
PSP_EBOOT_ICON = misc/psp/ICON0.png
|
PSP_EBOOT_ICON = misc/psp/ICON0.png
|
||||||
|
|
||||||
BUILD_DIR := build-psp
|
BUILD_DIR := build/psp
|
||||||
SOURCE_DIRS := src third_party/bearssl/src
|
SOURCE_DIRS := src third_party/bearssl/src
|
||||||
|
|
||||||
C_FILES := $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c))
|
C_FILES := $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c))
|
||||||
|
@ -38,14 +38,14 @@ include $(DEVKITPRO)/libnx/switch_rules
|
|||||||
# NACP building is skipped as well.
|
# NACP building is skipped as well.
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
TARGET := ClassiCube-switch
|
TARGET := ClassiCube-switch
|
||||||
BUILD := build-switch
|
BUILD := build/switch
|
||||||
SOURCES := src misc/switch third_party/bearssl/src
|
SOURCES := src misc/switch third_party/bearssl/src
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES := third_party/bearssl/inc
|
INCLUDES := third_party/bearssl/inc
|
||||||
#ROMFS := romfs
|
#ROMFS := romfs
|
||||||
|
|
||||||
APP_TITLE := ClassiCube
|
APP_TITLE := ClassiCube
|
||||||
APP_AUTHOR := UnknownShadow200
|
APP_AUTHOR := ClassiCube team
|
||||||
ICON := misc/switch/icon.jpg
|
ICON := misc/switch/icon.jpg
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
@ -2,7 +2,7 @@ PROJECT_TITLE := ClassiCube
|
|||||||
PROJECT_TITLEID := CUBE00200
|
PROJECT_TITLEID := CUBE00200
|
||||||
TARGET := ClassiCube-vita
|
TARGET := ClassiCube-vita
|
||||||
|
|
||||||
BUILD_DIR := build-vita
|
BUILD_DIR := build/vita
|
||||||
SOURCE_DIRS := src third_party/bearssl/src
|
SOURCE_DIRS := src third_party/bearssl/src
|
||||||
|
|
||||||
CFLAGS += -Wl,-q -Ithird_party/bearssl/inc -O1
|
CFLAGS += -Wl,-q -Ithird_party/bearssl/inc -O1
|
||||||
|
@ -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
|
1. Install `libexecinfo`, `curl` and `openal-soft` packages if needed
|
||||||
2. Run either:
|
2. Run either:
|
||||||
* `make netbsd` or
|
* `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
|
#### DragonflyBSD
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user