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')
|
||||
$(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)
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
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
|
||||
TARGET := ClassiCube-dc
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
Version : V1.360
|
||||
SW Maker Name : UnknownShadow200
|
||||
Game Title : ClassiCube Dreamcast
|
||||
SW Maker Name : ClassiCube team
|
||||
Game Title : ClassiCube
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
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
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# options for code generation
|
||||
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
BUILD_DIR := build-ps1
|
||||
BUILD_DIR := build/ps1
|
||||
SOURCE_DIRS := src
|
||||
TARGET := ClassiCube-ps1
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user