Build library
This commit is contained in:
parent
fbe296b758
commit
7d6b7d3db5
|
@ -4,7 +4,7 @@
|
|||
**/iso/Info
|
||||
/iso
|
||||
|
||||
*.dep
|
||||
*.d
|
||||
*.a
|
||||
*.o
|
||||
*.ii
|
||||
|
|
|
@ -19,10 +19,10 @@ PREFIX ?= mipsel-none-elf
|
|||
FORMAT ?= elf32-littlemips
|
||||
endif
|
||||
|
||||
CC ?= $(PREFIX)-gcc-10
|
||||
CXX ?= $(PREFIX)-g++-10
|
||||
LD ?= $(CXX)
|
||||
AR ?= ar
|
||||
CC = $(PREFIX)-gcc-10
|
||||
CXX = $(PREFIX)-g++-10
|
||||
LD = $(CXX)
|
||||
AR = ar
|
||||
|
||||
#architecture flags
|
||||
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,$@
|
||||
|
||||
#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
|
||||
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
|
||||
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
|
||||
all: $(TARGET).a
|
||||
|
|
Loading…
Reference in New Issue