@@ -10,15 +10,15 @@ include $(DEVKITARM)/ds_rules
10
10
11
11
# -----------------------------------------------------------------------
12
12
# 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
14
14
# SOURCES is a list of directories containing source code
15
15
# INCLUDES is a list of directories containing extra header files
16
16
# -----------------------------------------------------------------------
17
17
TARGET := arm7
18
18
BUILD := build
19
19
SOURCES := source
20
- INCLUDES := include build
21
-
20
+ INCLUDES := include
21
+ DATA :=
22
22
# -----------------------------------------------------------------------
23
23
# options for code generation
24
24
# -----------------------------------------------------------------------
@@ -40,7 +40,7 @@ LIBS := -lnds7
40
40
# list of directories containing libraries, this must be the top level
41
41
# containing include and lib
42
42
# -----------------------------------------------------------------------
43
- LIBDIRS := $(LIBNDS )
43
+ LIBDIRS := $(LIBNDS ) $( CURDIR ) /..
44
44
# -----------------------------------------------------------------------
45
45
# no real need to edit anything past this point unless you need to add
46
46
# additional rules for different file extensions
@@ -51,13 +51,13 @@ ifneq ($(BUILD),$(notdir $(CURDIR)))
51
51
export ARM7ELF := $(CURDIR ) /$(TARGET ) .elf
52
52
export DEPSDIR := $(CURDIR ) /$(BUILD )
53
53
54
- export VPATH := $(foreach dir,$(SOURCES ) ,$(CURDIR ) /$(dir ) ) \
54
+ export VPATH := $(foreach dir,$(SOURCES ) ,$(CURDIR ) /$(dir ) ) \
55
55
$(foreach dir,$(DATA ) ,$(CURDIR ) /$(dir ) )
56
56
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 ) /* .) ) )
61
61
62
62
# -----------------------------------------------------------------------
63
63
# use CXX for linking C++ projects, CC for standard C
76
76
export OFILES := $(addsuffix .o,$(BINFILES ) ) \
77
77
$(CPPFILES:.cpp=.o ) $(CFILES:.c=.o ) $(SFILES:.s=.o )
78
78
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) \
81
81
-I$(CURDIR ) /$(BUILD )
82
82
83
83
export LIBPATHS := $(foreach dir,$(LIBDIRS ) ,-L$(dir ) /lib)
0 commit comments