-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
62 lines (47 loc) · 1.34 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ----------------------------
# Set NAME to the program name
# Set ICON to the png icon file name
# Set DESCRIPTION to display within a compatible shell
# Set COMPRESSED to "YES" to create a compressed program
# ----------------------------
NAME = DINO
COMPRESSED = YES
ICON = iconc.png
DESCRIPTION = "Dino Run CE"
# ----------------------------
# Other Options (Advanced)
# ----------------------------
GIT_COMMIT := $(shell git rev-parse --short HEAD)
GIT_DIFF_STATUS := $(shell git diff-index --quiet HEAD; echo $$?)
EXTRA_CFLAGS = -DCOMMIT=$(GIT_COMMIT) -DDIFF_STATUS=$(GIT_DIFF_STATUS)
include $(shell cedev-config --makefile)
$(OBJDIR)/font/font.src: $(SRCDIR)/font/font.inc
$(SRCDIR)/font/font.inc: $(SRCDIR)/font/dino.fnt
convfont -o carray -f $(SRCDIR)/font/dino.fnt $(SRCDIR)/font/font.inc
clean_gfx:
-rm src/gfx/convpng.log
-rm src/gfx/*.c
-rm src/gfx/*.h
usb:
make clean
make EXTRA_CFLAGS=USE_USB=1
no_usb:
echo $(GIT_COMMIT)
make clean
make EXTRA_CFLAGS=USE_USB=0
# Format a release for the Cemetech archives
release:
make clean
make clean_gfx
-rm -r dino_run
mkdir dino_run
cp readme.md dino_run
markdown readme.md > dino_run/readme.html
mkdir dino_run/source
cp -r src iconc.png makefile dino_run/source
make gfx
make no_usb
cp bin/DINO.8xp dino_run/DINO.8xp
-rm dino_run.zip
zip -r dino_run.zip dino_run
rm -r dino_run