Merge pull request #2 from nicolasnoble/fixes

Simplifying / fixing Makefiles.
This commit is contained in:
Schnappy 2021-07-13 11:07:29 +02:00 committed by GitHub
commit 62d1d520f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 6 additions and 21 deletions

View File

@ -29,10 +29,14 @@ LDFLAGS += -ltap
LDFLAGS += -lcd LDFLAGS += -lcd
LDFLAGS += -Wl,--end-group LDFLAGS += -Wl,--end-group
THISDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(THISDIR)/thirdparty/nugget/common.mk
# convert TIM file to bin # convert TIM file to bin
%.o: %.tim %.o: %.tim
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O elf32-tradlittlemips -B mips $< $@ $(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
# convert VAG files to bin # convert VAG files to bin
%.o: %.vag %.o: %.vag
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O elf32-tradlittlemips -B mips $< $@ $(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@

View File

@ -3,4 +3,3 @@ TARGET = hello_2pads
SRCS = hello_2pads.c \ SRCS = hello_2pads.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_cdda
SRCS = hello_cdda.c \ SRCS = hello_cdda.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_cube
SRCS = hello_cube.c \ SRCS = hello_cube.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -4,4 +4,3 @@ SRCS = hello_cubetex.c \
../TIM/cubetex.tim \ ../TIM/cubetex.tim \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_gte_opti
SRCS = hello_gte_opti.c \ SRCS = hello_gte_opti.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_light
SRCS = hello_light.c \ SRCS = hello_light.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -5,4 +5,3 @@ SRCS = hello_multivag.c \
../VAG/poly.vag \ ../VAG/poly.vag \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_pad
SRCS = hello_pad.c \ SRCS = hello_pad.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_poly
SRCS = hello_poly.c \ SRCS = hello_poly.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -4,4 +4,3 @@ SRCS = hello_poly_ft.c \
../TIM/bousai.tim \ ../TIM/bousai.tim \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_poly_fun
SRCS = hello_poly_fun.c \ SRCS = hello_poly_fun.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -4,4 +4,3 @@ SRCS = hello_poly_gt.c \
../TIM/bousai.tim \ ../TIM/bousai.tim \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -4,4 +4,3 @@ SRCS = hello_poly_gt_tw.c \
../TIM/bousai.tim \ ../TIM/bousai.tim \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_poly_inline
SRCS = hello_poly_inline.c \ SRCS = hello_poly_inline.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_sio
SRCS = hello_sio.c \ SRCS = hello_sio.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -6,4 +6,3 @@ SRCS = hello_sprt.c \
../TIM/TIM4.tim \ ../TIM/TIM4.tim \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_tile
SRCS = hello_tile.c \ SRCS = hello_tile.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -4,4 +4,3 @@ SRCS = hello_vag.c \
../VAG/hello_poly.vag ../VAG/hello_poly.vag
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \

View File

@ -3,4 +3,3 @@ TARGET = hello_world
SRCS = hello_world.c \ SRCS = hello_world.c \
include ../common.mk include ../common.mk
include ../thirdparty/nugget/common.mk \