makefile changes to make it more automatic
This commit is contained in:
parent
95e8b48dc0
commit
cdbc551806
19
Makefile
19
Makefile
@ -8,21 +8,20 @@ HEADERNAME = header
|
||||
|
||||
|
||||
LINK_FLAGS = -O1 -L$(ROOTDIR)/lib -L$(ROOTDIR)/mips64-elf/lib -ldragon -lmikmod -lmad -lyaml -lc -lm -ldragonsys -lnosys $(LIBS) -Tn64ld.x
|
||||
PROG_NAME = menu
|
||||
CFLAGS = -std=gnu99 -march=vr4300 -mtune=vr4300 -O1 -I./inc -I$(ROOTDIR)/include -I$(ROOTDIR)/mips64-elf/include -lpthread -lrt -D_REENTRANT -DUSE_TRUETYPE
|
||||
CFLAGS += $(SET_DEBUG)
|
||||
PROG_NAME = OS64
|
||||
CFLAGS = -std=gnu99 -march=vr4300 -mtune=vr4300 -O1 -I./inc -I$(ROOTDIR)/include -I$(ROOTDIR)/mips64-elf/include -lpthread -lrt -D_REENTRANT -DUSE_TRUETYPE $(SET_DEBUG)
|
||||
ASFLAGS = -mtune=vr4300 -march=vr4300
|
||||
CC = $(GCCN64PREFIX)gcc
|
||||
AS = $(GCCN64PREFIX)as
|
||||
LD = $(GCCN64PREFIX)ld
|
||||
OBJCOPY = $(GCCN64PREFIX)objcopy
|
||||
OBJS = $(PROG_NAME).o everdrive.o fat.o disk.o mem.o sys.o ini.o strlib.o utils.o sram.o stb_image.o chksum64.o mp3.o
|
||||
OBJS = menu.o everdrive.o fat.o disk.o mem.o sys.o ini.o strlib.o utils.o sram.o stb_image.o chksum64.o mp3.o
|
||||
|
||||
$(PROG_NAME).v64: $(PROG_NAME).elf test.dfs
|
||||
$(PROG_NAME).v64: $(PROG_NAME).elf $(PROG_NAME).dfs
|
||||
$(OBJCOPY) $(PROG_NAME).elf $(PROG_NAME).bin -O binary
|
||||
rm -f OS64.v64
|
||||
$(N64TOOL) -l 4M -t "EverDrive OS" -h ./res/header.ed64 -o OS64.v64 $(PROG_NAME).bin -s 1M test.dfs
|
||||
$(CHKSUM64PATH) OS64.v64
|
||||
rm -f $(PROG_NAME).v64
|
||||
$(N64TOOL) -l 4M -t "EverDrive OS" -h ./res/header.ed64 -o $(PROG_NAME).v64 $(PROG_NAME).bin -s 1M $(PROG_NAME).dfs
|
||||
$(CHKSUM64PATH) $(PROG_NAME).v64
|
||||
|
||||
$(PROG_NAME).elf : $(OBJS)
|
||||
$(LD) -o $(PROG_NAME).elf $(OBJS) $(LINK_FLAGS)
|
||||
@ -30,8 +29,8 @@ $(PROG_NAME).elf : $(OBJS)
|
||||
copy: $(PROG_NAME).v64
|
||||
sh upload.sh
|
||||
|
||||
test.dfs:
|
||||
$(MKDFSPATH) test.dfs ./res/filesystem/
|
||||
$(PROG_NAME).dfs:
|
||||
$(MKDFSPATH) $(PROG_NAME).dfs ./res/filesystem/
|
||||
|
||||
all: $(PROG_NAME).v64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user