-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (46 loc) · 1.93 KB
/
Makefile
File metadata and controls
56 lines (46 loc) · 1.93 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
51
52
53
54
55
56
# ************************************************************************************************
# ************************************************************************************************
#
# Name: Makefile
# Purpose: Main make file
# Created: 18th September 2022
# Author: Paul Robson ([email protected])
#
# ************************************************************************************************
# ************************************************************************************************
ifeq ($(OS),Windows_NT)
include ..\documents\common.make
else
include ../documents/common.make
endif
BINDIR = $(ROOTDIR)bin$(S)
ASMOPTS = -q -b -Wall -c -L output$(S)basic.lst -l output$(S)basic.lbl -Wall
APPNAME = basic.rom
SCRIPTDIR = scripts$(S)
EMULATOR = $(BINDIR)jr256$(APPSTEM)
TTYPORT = /dev/ttyUSB0
LANGUAGE = en
EMU_REPO= ..$(S)..$(S)junior-emulator
UTL_REPO= ..$(S)..$(S)junior-utilities
KRN_REPO= ..$(S)..$(S)junior-tinykernel
EMSRC = $(EMU_REPO)$(S)emulator
EMUCODE = $(EMSRC)$(S)src $(EMSRC)$(S)include $(EMSRC)$(S)framework $(EMSRC)$(S)6502 $(EMSRC)$(S)roms
SOURCES = emulator/framework/main.cpp emulator/framework/gfx.cpp emulator/framework/debugger.cpp \
emulator/src/sys_processor.cpp emulator/src/sys_debug_uk101.cpp emulator/src/hardware.cpp emulator/src/hw_fifo.cpp
DEFINES = -D EMSCRIPTEN -D LINUX -D NO_DEBUGGER -DINCLUDE_OS_SUPPORT
EMFLAGS = -I. -I emulator/framework -I emulator//cpu -I emulator/include -I emulator -O2 -s USE_SDL=2 -s WASM=1 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["png"]'
COMPILE = emcc $(SOURCES) $(DEFINES) $(CADDRESSES) $(EMFLAGS) -o f256.html
LOADERS = python makeloader.py $(CADDRESSES)
all: build
build: build1
make -C ../source basic
$(CCOPY) utility$(S)dummy* loading
make -C ../source basic
$(CCOPY) ../source/build/basic.rom loading/basic.basic
$(LOADERS)
$(COMPILE)
build1:
$(CCOPY) -R $(EMUCODE) emulator
$(CDEL) loading$(S)*.*
server:
python -m http.server 8000