Skip to content

Commit 4d80b8e

Browse files
author
Scitoshi Nakayobro
committed
Move sources into directory, change Makefile to a simple BASH script
1 parent b66fb6a commit 4d80b8e

24 files changed

+15
-7
lines changed

Makefile

-7
This file was deleted.

build

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
EXECUTABLE="x6502"
3+
LDFLAGS="-O3 -lpthread -Wall -lncurses"
4+
SRCDIR=src
5+
6+
objects_string=""
7+
for i in $(find src -type f -name "*.c" | sed -e 's/\.c$//');
8+
do
9+
gcc -I $SRCDIR -c $i".c" -o $i".o" -g
10+
objects_string="$objects_string "$i".o "
11+
done;
12+
13+
gcc -o $EXECUTABLE $objects_string $LDFLAGS
14+
15+
rm $objects_string

cpu.c renamed to src/cpu.c

File renamed without changes.

cpu.h renamed to src/cpu.h

File renamed without changes.

emu.c renamed to src/emu.c

File renamed without changes.

emu.h renamed to src/emu.h

File renamed without changes.
File renamed without changes.

io.c renamed to src/io.c

File renamed without changes.

io.h renamed to src/io.h

File renamed without changes.

main.c renamed to src/main.c

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

opcodes.h renamed to src/opcodes.h

File renamed without changes.

0 commit comments

Comments
 (0)