forked from adriancable/8086tiny
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.02 KB
/
Makefile
File metadata and controls
36 lines (28 loc) · 1.02 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
# 8086tiny: a tiny, highly functional, highly portable PC emulator/VM
# Copyright 2013-14, Adrian Cable (adrian.cable@gmail.com) - http://www.megalith.co.uk/8086tiny
#
# This work is licensed under the MIT License. See included LICENSE.TXT.
# 8086tiny builds with graphics and sound support
# 8086tiny_slowcpu improves graphics performance on slow platforms (e.g. Raspberry Pi)
# no_graphics compiles without SDL graphics/sound
NASM=nasm
OPTS_ALL=-O3 -fsigned-char -std=c99
OPTS_SDL=`sdl-config --cflags --libs`
OPTS_NOGFX=-DNO_GRAPHICS
OPTS_SLOWCPU=-DGRAPHICS_UPDATE_DELAY=25000
NASM_FLAGS=-f bin
all: 8086tiny bios
8086tiny: 8086tiny.c
${CC} 8086tiny.c ${OPTS_SDL} ${OPTS_ALL} -o 8086tiny
strip 8086tiny
8086tiny_slowcpu: 8086tiny.c
${CC} 8086tiny.c ${OPTS_SDL} ${OPTS_ALL} ${OPTS_SLOWCPU} -o 8086tiny
strip 8086tiny
no_graphics: 8086tiny.c
${CC} 8086tiny.c ${OPTS_NOGFX} ${OPTS_ALL} -o 8086tiny
strip 8086tiny
bios: bios_source/bios.asm
${NASM} ${NASM_FLAGS} bios_source/bios.asm -o bios
.PHONY: clean
clean:
rm 8086tiny bios