42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
JABY_ENGINE_DIR = ../../
|
|
|
|
ARTIFACT = libJabyEngine_$(TV_FORMAT)
|
|
BUILD_DIR = bin
|
|
|
|
SPLASH_IMAGE = src/BootLoader/splash_image_pal_boot.hpp
|
|
SPLASH_IMAGE_NTSC = src/BootLoader/splash_image_ntsc_boot.hpp
|
|
|
|
CCFLAGS += -Iinclude -I../../include
|
|
CCFLAGS += -save-temps=obj
|
|
|
|
include ../../lib/Wildcard.mk
|
|
SRCS = $(call rwildcard, src, c cpp)
|
|
SRCS += src/syscall_printf.asm
|
|
|
|
include ../../lib/Makefile
|
|
LIB_DIR = ../../lib/$(CONFIG_NAME)
|
|
|
|
#Linking rule
|
|
$(TARGET).a: $(OBJS) $(SPLASH_IMAGE)
|
|
@mkdir -p $(dir $@)
|
|
$(AR) rcs $(TARGET).a $(OBJS)
|
|
|
|
$(LIB_DIR)/$(ARTIFACT).a: $(TARGET).a
|
|
@mkdir -p $(LIB_DIR)
|
|
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
|
|
|
|
# Improve later
|
|
$(SPLASH_IMAGE): ressources/Splash.png
|
|
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
|
|
|
$(SPLASH_IMAGE_NTSC): ressources/Splash_ntsc.png
|
|
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
|
|
|
|
#Rules section for default compilation and linking
|
|
all: $(SPLASH_IMAGE) $(SPLASH_IMAGE_NTSC) $(LIB_DIR)/$(ARTIFACT).a
|
|
|
|
clean:
|
|
rm -fr $(SPLASH_IMAGE)
|
|
rm -fr $(SPLASH_IMAGE_NTSC)
|
|
rm -fr $(OUTPUT_DIR)
|
|
rm -fr $(LIB_DIR)/$(ARTIFACT).a
|