Build library
This commit is contained in:
parent
0c52689ebe
commit
aff3e4acd1
|
@ -4,7 +4,7 @@
|
||||||
**/iso/Info
|
**/iso/Info
|
||||||
/iso
|
/iso
|
||||||
|
|
||||||
*.dep
|
*.d
|
||||||
*.a
|
*.a
|
||||||
*.o
|
*.o
|
||||||
*.ii
|
*.ii
|
||||||
|
|
|
@ -19,10 +19,10 @@ PREFIX ?= mipsel-none-elf
|
||||||
FORMAT ?= elf32-littlemips
|
FORMAT ?= elf32-littlemips
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC ?= $(PREFIX)-gcc-10
|
CC = $(PREFIX)-gcc-10
|
||||||
CXX ?= $(PREFIX)-g++-10
|
CXX = $(PREFIX)-g++-10
|
||||||
LD ?= $(CXX)
|
LD = $(CXX)
|
||||||
AR ?= ar
|
AR = ar
|
||||||
|
|
||||||
#architecture flags
|
#architecture flags
|
||||||
ARCHFLAGS = -march=mips1 -mabi=32 -EL -fno-pic -mno-shared -mno-abicalls -mfp32
|
ARCHFLAGS = -march=mips1 -mabi=32 -EL -fno-pic -mno-shared -mno-abicalls -mfp32
|
||||||
|
@ -55,9 +55,6 @@ LIBS_all += $(LIBS_$(BUILD_PROFILE))
|
||||||
|
|
||||||
DEPS = -Wp,-MMD,$(@:%.o=%.d),-MT,$@
|
DEPS = -Wp,-MMD,$(@:%.o=%.d),-MT,$@
|
||||||
|
|
||||||
#Macro to expand files recursively: parameters $1 - directory, $2 - extension, i.e. cpp
|
|
||||||
rwildcard = $(wildcard $(addprefix $1/*.,$2)) $(foreach d,$(wildcard $1/*),$(call rwildcard,$d,$2))
|
|
||||||
|
|
||||||
#Object files list
|
#Object files list
|
||||||
OBJS = $(addprefix $(OUTPUT_DIR)/,$(addsuffix .o, $(subst ..,!super,$(basename $(SRCS)))))
|
OBJS = $(addprefix $(OUTPUT_DIR)/,$(addsuffix .o, $(subst ..,!super,$(basename $(SRCS)))))
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#Macro to expand files recursively: parameters $1 - directory, $2 - extension, i.e. cpp
|
||||||
|
rwildcard = $(wildcard $(addprefix $1/*.,$2)) $(foreach d,$(wildcard $1/*),$(call rwildcard,$d,$2))
|
|
@ -1,7 +1,10 @@
|
||||||
ARTIFACT = libJabyEngine
|
ARTIFACT = libJabyEngine
|
||||||
BUILD_DIR = ../../lib
|
BUILD_DIR = ../../lib
|
||||||
|
|
||||||
include ../../Makefile
|
include ../../lib/Wildcard.mk
|
||||||
|
SRCS = $(call rwildcard, src, c cpp)
|
||||||
|
|
||||||
|
include ../../lib/Makefile
|
||||||
|
|
||||||
#Rules section for default compilation and linking
|
#Rules section for default compilation and linking
|
||||||
all: $(TARGET).a
|
all: $(TARGET).a
|
||||||
|
|
Loading…
Reference in New Issue