-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
38 lines (29 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
STARTUP = $(KOS_BASE)/kernel/arch/dreamcast/kernel/startup.o
NESTERDC_LIBS = -L$(KOS_BASE)/lib -lkallisti -L$(BZ_BASE) -lbz2
NESTERDC_LIBS += -lsupc++ -lm -lc -lgcc
all:
$(KOS_MAKE) -C utils
$(KOS_MAKE) -C $(BZ_BASE)
$(KOS_MAKE) -C $(KOS_BASE)
$(KOS_MAKE) -C $(NESTER_BASE) -f Makefile.dreamcast
$(KOS_CCPLUS) $(KOS_CPPFLAGS) $(KOS_LDFLAGS) -o obj/nester.elf $(STARTUP) $(NESTER_OBJ)/*.o $(NESTERDC_LIBS)
$(KOS_STRIP) -o obj/nester-strip.elf obj/nester.elf
clean:
-rm -f obj/*
$(KOS_MAKE) -C utils clean
$(KOS_MAKE) -C $(BZ_BASE) clean
$(KOS_MAKE) -C $(KOS_BASE) clean
$(KOS_MAKE) -C $(NESTER_BASE) -f Makefile.dreamcast clean
install:
tcpcat -h yuri:4711 obj/nester-strip.elf
devel:
$(KOS_MAKE) -C $(NESTER_BASE) -f Makefile.dreamcast clean
$(KOS_MAKE) all
makeasm: disasm
$(NDC_BASE)/utils/asmfilter/asmfilter < disasm > asm
disasm: force
$(KOS_OBJDUMP) -D obj/nester.elf > disasm
1ST_READ.BIN:
$(KOS_OBJCOPY) -O binary obj/nester-strip.elf obj/nester.bin
$(NDC_BASE)/utils/scramble/scramble obj/nester.bin obj/1ST_READ.BIN
force: