Skip to content

Commit c29fc48

Browse files
authored
Fix targets declaration order
1 parent 324dd37 commit c29fc48

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

makelib.gen

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ OBJ_LIB += $(SRC_LIB_C:.c=.o)
2828

2929
DEP_LIB := $(OBJ_LIB:.o=.d)
3030

31-
-include $(DEP_LIB)
32-
3331
LST_LIB := $(SRC_LIB_C:.c=.lst)
3432

3533
INCS_LIB := -I$(INCLUDE_LIB) -I$(SRC_LIB) -I$(RES_LIB)
3634
DEFAULT_FLAGS_LIB := $(EXTRA_FLAGS) -DSGDK_GCC -m68000 -Wall -Wextra -Wno-array-bounds -Wno-shift-negative-value -Wno-unused-parameter -fno-builtin -fms-extensions -ffunction-sections -fdata-sections $(INCS_LIB) -B$(BIN)
3735
FLAGSZ80_LIB := -i$(SRC_LIB) -i$(INCLUDE_LIB) -i$(INCLUDE_LIB)/snd
3836

37+
all: release
38+
default: release
39+
Default: release
40+
41+
Debug: debug
42+
Release: release
43+
Asm: asm
3944

4045
#release: FLAGS_LIB= $(DEFAULT_FLAGS_LIB) -Os -fomit-frame-pointer -fuse-linker-plugin -flto -flto=auto -ffat-lto-objects
4146
release: FLAGS_LIB= $(DEFAULT_FLAGS_LIB) -O3 -fuse-linker-plugin -fno-web -fno-gcse -fomit-frame-pointer -flto -flto=auto -ffat-lto-objects
@@ -53,16 +58,9 @@ asm: CFLAGS_LIB= $(FLAGS_LIB)
5358
asm: AFLAGS_LIB= $(FLAGS_LIB)
5459
asm: $(LST_LIB)
5560

56-
all: release
57-
default: release
58-
59-
Default: release
60-
Debug: debug
61-
Release: release
62-
Asm: asm
63-
6461
.PHONY: clean
6562

63+
-include $(DEP_LIB)
6664

6765
cleanlst:
6866
$(RM) -f $(LST_LIB)

0 commit comments

Comments
 (0)