| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,30 @@ |
| 1 |
+CC=cc |
|
| 2 |
+CFLAGS=-std=c89 -Wall -Wno-unknown-pragmas -g |
|
| 3 |
+LDFLAGS=-L/usr/local/lib `sdl2-config --cflags --libs` |
|
| 4 |
+ |
|
| 5 |
+all: bin/uxn256emu |
|
| 6 |
+ |
|
| 7 |
+bin/uxn256emu: src/uxnemu.c \ |
|
| 8 |
+ src/uxn.h src/uxn.c \ |
|
| 9 |
+ src/devices/system.h src/devices/system.c \ |
|
| 10 |
+ src/devices/screen.h src/devices/screen.c \ |
|
| 11 |
+ src/devices/mouse.h src/devices/mouse.c \ |
|
| 12 |
+ src/devices/file.h src/devices/file.c \ |
|
| 13 |
+ src/devices/datetime.h src/devices/datetime.c \ |
|
| 14 |
+ src/devices/controller.h src/devices/controller.c \ |
|
| 15 |
+ src/devices/console.h src/devices/console.c \ |
|
| 16 |
+ src/devices/audio.h src/devices/audio.c |
|
| 17 |
+ $(CC) $(CFLAGS) -o bin/uxn256emu \ |
|
| 18 |
+ src/uxnemu.c \ |
|
| 19 |
+ src/uxn.c \ |
|
| 20 |
+ src/devices/system.c \ |
|
| 21 |
+ src/devices/screen.c \ |
|
| 22 |
+ src/devices/mouse.c \ |
|
| 23 |
+ src/devices/file.c \ |
|
| 24 |
+ src/devices/datetime.c \ |
|
| 25 |
+ src/devices/controller.c \ |
|
| 26 |
+ src/devices/console.c \ |
|
| 27 |
+ src/devices/audio.c \ |
|
| 28 |
+ $(LDFLAGS) |
|
| 29 |
+ |
|
| 30 |
+ |
| ... | ... |
@@ -81,12 +81,12 @@ else |
| 81 | 81 |
fi |
| 82 | 82 |
|
| 83 | 83 |
${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
| 84 |
-${CC} ${CFLAGS} src/uxn.c src/devices/system.c src/devices/console.c src/devices/file.c src/devices/datetime.c src/devices/mouse.c src/devices/controller.c src/devices/screen.c src/devices/audio.c src/uxnemu.c ${UXNEMU_LDFLAGS} ${FILE_LDFLAGS} -o bin/uxnemu
|
|
| 84 |
+${CC} ${CFLAGS} src/uxn.c src/devices/system.c src/devices/console.c src/devices/file.c src/devices/datetime.c src/devices/mouse.c src/devices/controller.c src/devices/screen.c src/devices/audio.c src/uxnemu.c ${UXNEMU_LDFLAGS} ${FILE_LDFLAGS} -o bin/uxn256emu
|
|
| 85 | 85 |
${CC} ${CFLAGS} src/uxn.c src/devices/system.c src/devices/console.c src/devices/file.c src/devices/datetime.c src/uxncli.c ${FILE_LDFLAGS} -o bin/uxncli
|
| 86 | 86 |
|
| 87 | 87 |
if [ $install = 1 ] |
| 88 | 88 |
then |
| 89 |
- cp bin/uxnemu bin/uxnasm bin/uxncli $HOME/bin/ |
|
| 89 |
+ cp bin/uxn256emu bin/uxnasm bin/uxncli $HOME/bin/ |
|
| 90 | 90 |
fi |
| 91 | 91 |
|
| 92 | 92 |
./bin/uxnasm projects/software/launcher.tal bin/launcher.rom |
| ... | ... |
@@ -98,14 +98,14 @@ if [ $norun = 1 ]; then exit; fi |
| 98 | 98 |
|
| 99 | 99 |
./bin/uxnasm |
| 100 | 100 |
./bin/uxncli |
| 101 |
-./bin/uxnemu |
|
| 101 |
+./bin/uxn256emu |
|
| 102 | 102 |
|
| 103 | 103 |
# Test version |
| 104 | 104 |
|
| 105 | 105 |
./bin/uxnasm -v |
| 106 | 106 |
./bin/uxncli -v |
| 107 |
-./bin/uxnemu -v |
|
| 107 |
+./bin/uxn256emu -v |
|
| 108 | 108 |
|
| 109 | 109 |
./bin/uxnasm projects/examples/devices/mouse.tal bin/mouse.rom |
| 110 | 110 |
|
| 111 |
-./bin/uxnemu -2x bin/mouse.rom |
|
| 111 |
+./bin/uxn256emu -2x bin/mouse.rom |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
</$objtype/mkfile |
| 2 | 2 |
|
| 3 | 3 |
BIN=/$objtype/bin/games |
| 4 |
-TARG=bin/uxncli bin/uxnasm bin/uxnemu |
|
| 4 |
+TARG=bin/uxncli bin/uxnasm bin/uxn256emu |
|
| 5 | 5 |
USM=`{walk -f projects/ | grep '\.tal$' | grep -v blank.tal | grep -v /assets/ | grep -v /library/}
|
| 6 | 6 |
ROM=${USM:%.tal=%.rom}
|
| 7 | 7 |
CFLAGS=$CFLAGS -p -D__plan9__ -I/sys/include/npe -I/sys/include/npe/SDL2 |
| ... | ... |
@@ -41,7 +41,7 @@ bin/uxncli: file.$O datetime.$O system.$O console.$O uxncli.$O uxn.$O |
| 41 | 41 |
bin/uxnasm: uxnasm.$O |
| 42 | 42 |
$LD $LDFLAGS -o $target $prereq |
| 43 | 43 |
|
| 44 |
-bin/uxnemu: audio.$O controller.$O datetime.$O file.$O mouse.$O screen.$O system.$O console.$O uxn.$O uxnemu.$O |
|
| 44 |
+bin/uxn256emu: audio.$O controller.$O datetime.$O file.$O mouse.$O screen.$O system.$O console.$O uxn.$O uxnemu.$O |
|
| 45 | 45 |
$LD $LDFLAGS -o $target $prereq |
| 46 | 46 |
|
| 47 | 47 |
(uxnasm|uxncli|uxnemu|uxn)\.$O:R: src/\1.c |