-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 933 Bytes
/
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
AS=ca65
CC=cl65
LD=ld65
CFLAGS=-ttelestrat
LDFILES=
ROM=emptyrom
all : build
.PHONY : all
HOMEDIR=/home/travis/bin/
HOMEDIR_ORIX=/home/travis/build/orix-software/empty-rom/
ORIX_VERSION=1.0
SOURCE=src/empty-rom.asm
TELESTRAT_TARGET_RELEASE=release/telestrat
MYDATE = $(shell date +"%Y-%m-%d %H:%m")
ifdef TRAVIS_BRANCH
ifeq ($(TRAVIS_BRANCH), master)
RELEASE:=$(shell cat VERSION)
else
RELEASE=alpha
endif
endif
build: $(SOURCE)
@date +'.define __DATE__ "%F %R"' > src/build.inc
$(AS) $(CFLAGS) $(SOURCE) -o $(ROM).ld65
$(LD) -tnone $(ROM).ld65 -o $(ROM).rom
test:
mkdir -p build/usr/share/man/
mkdir -p build/usr/share/emptyrom/
cp $(ROM).rom build/usr/share/emptyrom/
export ORIX_PATH=`pwd`
cd build && tar -c * > ../$(ROM).tar && cd ..
filepack $(ROM).tar $(ROM).pkg
gzip $(ROM).tar
mv $(ROM).tar.gz $(ROM).tgz
php buildTestAndRelease/publish/publish2repo.php $(ROM).tgz ${hash} 6502 tgz $(RELEASE)