forked from darcagn/dream-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1.22 KB
/
Makefile
File metadata and controls
50 lines (35 loc) · 1.22 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
# Dream Web Console - Makefile
VERSION = "202312XX"
TARGET = dream-web-console.elf
# Enable printing of malloc stats to console?
MALLOC_STATS = 1
# Core modules
OBJS = source/dwc.o source/client_thread.o source/style.o romdisk.o
# Send modules
OBJS += source/send_ok_error.o source/filer.o source/send_main.o
OBJS += source/send_mem.o source/send_vmu.o
# GD-ROM modules
OBJS += source/gdrom/gdrom.o source/gdrom/send_disc_index.o source/gdrom/send_gdi.o
OBJS += source/gdrom/send_track.o
KOS_ROMDISK_DIR = romdisk
KOS_CFLAGS += -O3 -flto=auto -DVERSION=$(VERSION) -DMALLOC_STATS=$(MALLOC_STATS)
ZIPPED_FILES = CHANGELOG.md LICENSE README.md README.KOS Makefile source/ romdisk/
all: rm-elf $(TARGET)
include $(KOS_BASE)/Makefile.rules
clean: rm-elf
-rm -f $(OBJS)
-rm -f romdisk/dwc-source-*.zip
-rm -f dream-web-console.cdi
rm-elf:
-rm -f $(TARGET) romdisk.*
prepsource:
zip -9 -r romdisk/dwc-source-$(VERSION).zip $(ZIPPED_FILES)
$(TARGET): prepsource $(OBJS)
kos-cc -o $(TARGET) $(OBJS) -lconio
run: $(TARGET)
$(KOS_LOADER) $(TARGET)
dist: $(TARGET)
-rm -f $(OBJS) romdisk.img
$(KOS_STRIP) $(TARGET)
disc: $(TARGET)
mkdcdisc -a darcagn -e dream-web-console.elf -m -n dream-web-console -r $(VERSION) -o dream-web-console.cdi