From 44dd86a6039f236a244e86daecb1e7fb26d4b1ae Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 6 Sep 2022 20:18:38 +0200 Subject: [PATCH] Use newest Makefile --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 79d3a3e..dfd925c 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ TOPDIR ?= $(CURDIR) include $(DEVKITPRO)/wups/share/wups_rules WUT_ROOT := $(DEVKITPRO)/wut +WUMS_ROOT := $(DEVKITPRO)/wums + #------------------------------------------------------------------------------- # TARGET is the name of the output # BUILD is the directory where object files & intermediate files will be placed @@ -18,32 +20,33 @@ WUT_ROOT := $(DEVKITPRO)/wut # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files #------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) +TARGET := drc-sensorbar BUILD := build -SOURCES := src src/utils +SOURCES := src \ + src/utils DATA := data INCLUDES := src #------------------------------------------------------------------------------- # options for code generation #------------------------------------------------------------------------------- -CFLAGS := -g -Wall -O2 -ffunction-sections \ +CFLAGS := -g -Wall -O3 -ffunction-sections -fno-exceptions -fno-rtti \ $(MACHDEP) CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__ -D__WUPS__ -CXXFLAGS := $(CFLAGS) +CXXFLAGS := $(CFLAGS) -std=gnu++20 ASFLAGS := -g $(ARCH) -LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) $(WUPSSPECS) +LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) $(WUPSSPECS) -LIBS := -lwups -lwut +LIBS := -lwups -lwut #------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level # containing include and lib #------------------------------------------------------------------------------- -LIBDIRS := $(PORTLIBS) $(WUPS_ROOT) $(WUT_ROOT) +LIBDIRS := $(PORTLIBS) $(WUPS_ROOT) $(WUT_ROOT) $(WUMS_ROOT) #------------------------------------------------------------------------------- # no real need to edit anything past this point unless you need to add additional