Skip to content

Commit 3fb562b

Browse files
committed
Attempts to fix arm7 build
1 parent f7f55d3 commit 3fb562b

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Diff for: arm7/Makefile

+11-11
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ include $(DEVKITARM)/ds_rules
1010

1111
#-----------------------------------------------------------------------
1212
# TARGET is the name of the output
13-
# BUILD is the directory for object files & intermediate files
13+
# BUILD is the directory where object files & intermediate files will be placed
1414
# SOURCES is a list of directories containing source code
1515
# INCLUDES is a list of directories containing extra header files
1616
#-----------------------------------------------------------------------
1717
TARGET := arm7
1818
BUILD := build
1919
SOURCES := source
20-
INCLUDES := include build
21-
20+
INCLUDES := include
21+
DATA :=
2222
#-----------------------------------------------------------------------
2323
# options for code generation
2424
#-----------------------------------------------------------------------
@@ -40,7 +40,7 @@ LIBS := -lnds7
4040
# list of directories containing libraries, this must be the top level
4141
# containing include and lib
4242
#-----------------------------------------------------------------------
43-
LIBDIRS := $(LIBNDS)
43+
LIBDIRS := $(LIBNDS) $(CURDIR)/..
4444
#-----------------------------------------------------------------------
4545
# no real need to edit anything past this point unless you need to add
4646
# additional rules for different file extensions
@@ -51,13 +51,13 @@ ifneq ($(BUILD),$(notdir $(CURDIR)))
5151
export ARM7ELF := $(CURDIR)/$(TARGET).elf
5252
export DEPSDIR := $(CURDIR)/$(BUILD)
5353

54-
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))\
54+
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
5555
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
5656

57-
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
58-
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
59-
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
60-
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
57+
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
58+
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
59+
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
60+
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.)))
6161

6262
#-----------------------------------------------------------------------
6363
# use CXX for linking C++ projects, CC for standard C
@@ -76,8 +76,8 @@ endif
7676
export OFILES := $(addsuffix .o,$(BINFILES)) \
7777
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
7878

79-
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir))\
80-
$(foreach dir,$(LIBDIRS),-I$(dir)/include)\
79+
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
80+
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
8181
-I$(CURDIR)/$(BUILD)
8282

8383
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)

Diff for: arm9/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#-----------------------------------------------------------------------
44

55
ifeq ($(strip $(DEVKITARM)),)
6-
$(error "DEVKITARM not in environment.")
6+
$(error "Please set DEVKITARM in your environment.")
77
endif
88

99
include $(DEVKITARM)/ds_rules
@@ -50,7 +50,7 @@ LIBDIRS := $(LIBNDS) $(CURDIR)/..
5050
ifneq ($(BUILD),$(notdir $(CURDIR)))
5151
#-----------------------------------------------------------------------
5252

53-
export ARM9ELF := $(CURDIR)/$(TARGET).elf
53+
export ARM9ELF := $(CURDIR)/$(TARGET).elf
5454
export DEPSDIR := $(CURDIR)/$(BUILD)
5555

5656
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
@@ -77,8 +77,8 @@ endif
7777
#-----------------------------------------------------------------------
7878

7979
export OFILES := $(addsuffix .o,$(BINFILES)) \
80-
$(PNGFILES:.png=.o) \
81-
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
80+
$(PNGFILES:.png=.o) \
81+
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
8282

8383
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
8484
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \

0 commit comments

Comments
 (0)