File tree Expand file tree Collapse file tree
toolsNG/toolsNG/parseBanks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ DEPS:= $(OBJS:.o=.d)
5959LST:= $(SRC_C:.c=.lst)
6060LSTS:= $(addprefix out/, $(LST))
6161
62- INCS:= -I$(INCLUDE) -I$(SRC) -I$(RES) -I$(INCLUDE_LIB ) -I$(RES_LIB)
62+ INCS:= -I$(INCLUDE) -I$(SRC) -I$(RES) -I$(INC_LIB ) -I$(RES_LIB)
6363DEFAULT_FLAGS= $(EXTRA_FLAGS) -DSGDK_GCC -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -fms-extensions $(INCS) -B$(BIN)
64- FLAGSZ80:= -i$(SRC) -i$(INCLUDE) -i$(RES) -i$(SRC_LIB) -i$(INCLUDE_LIB )
64+ FLAGSZ80:= -i$(SRC) -i$(INCLUDE) -i$(RES) -i$(SRC_LIB) -i$(INC_LIB )
6565
6666#release: FLAGS= $(DEFAULT_FLAGS) -Os -fomit-frame-pointer -fuse-linker-plugin -flto
6767release: FLAGS= $(DEFAULT_FLAGS) -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto
Original file line number Diff line number Diff line change 1- BIN= $(GDK)/bin
2- LIB= $(GDK)/lib
3-
1+ include $(GDK)/common.mk
2+ # NG directories
43SRC_LIB= $(GDK)/srcNG
54RES_LIB= $(GDK)/srcNG/res
6- INCLUDE_LIB= $(GDK)/inc
75
86SHELL= $(BIN)/sh
97RM= $(BIN)/rm
@@ -32,9 +30,9 @@ OBJ_LIB+= $(SRC_LIB_C:.c=.o)
3230
3331LST_LIB= $(SRC_LIB_C:.c=.lst)
3432
35- INCS_LIB= -I$(INCLUDE_LIB ) -I$(SRC_LIB) -I$(RES_LIB)
33+ INCS_LIB= -I$(INC_LIB ) -I$(SRC_LIB) -I$(RES_LIB)
3634DEFAULT_FLAGS_LIB= -m68000 -Wall -Wa,--register-prefix-optional -fno-builtin $(INCS_LIB) -B$(BIN)
37- FLAGSZ80_LIB= -i$(SRC_LIB) -i$(INCLUDE_LIB )
35+ FLAGSZ80_LIB= -i$(SRC_LIB) -i$(INC_LIB )
3836
3937
4038#release: FLAGS_LIB= $(DEFAULT_FLAGS_LIB) -O1 -fomit-frame-pointer -flto
@@ -87,11 +85,11 @@ cleanAsm: cleanasm
8785
8886
8987$(LIB)/libNG.a: cmd_
90- $(AR) rs $(LIB)/libNG.a --plugin=liblto_plugin-0.dll @cmd_
88+ $(AR) rs $(LIB)/libNG.a $(LTO_PLUGIN) @cmd_
9189 $(RM) cmd_
9290
9391$(LIB)/libNG_debug.a: cmd_
94- $(AR) rs $(LIB)/libNG_debug.a --plugin=liblto_plugin-0.dll @cmd_
92+ $(AR) rs $(LIB)/libNG_debug.a $(LTO_PLUGIN) @cmd_
9593 $(RM) cmd_
9694
9795cmd_ : $(OBJ_LIB)
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ static void Main(string[] args)
4040 FileStream fs2 ;
4141 if ( args [ 0 ] . LastIndexOf ( '.' ) == - 1 )
4242 fileName = args [ 0 ] ;
43- else fileName = args [ 0 ] . Substring ( 0 , args [ 0 ] . LastIndexOf ( '.' ) + 1 ) ;
43+ else fileName = args [ 0 ] . Substring ( 0 , args [ 0 ] . LastIndexOf ( '.' ) ) ;
4444 // P1
4545 fs . Seek ( 0 , SeekOrigin . Begin ) ;
4646 fs . Read ( bankData , 0 , bankData . Length ) ;
You can’t perform that action at this time.
0 commit comments