Renames explink to svmln, as to svmas.

This commit is contained in:
Felix Queißner 2016-07-02 17:21:06 +02:00
parent 03d55d22a7
commit 3d46b22f61
5 changed files with 8 additions and 21 deletions

View file

@ -2,11 +2,11 @@
CC = gcc
CFLAGS=-O3
all: explink expdump emulator as
all: svmln expdump emulator svmas
.PHONY: as clean run
explink: explink.c
svmln: svmln.c
$(CC) -g -o bin/$@ $^ $(CFLAGS)
expdump: expdump.c mnemonics.c disassembler.c
@ -15,7 +15,7 @@ expdump: expdump.c mnemonics.c disassembler.c
emulator: emulator.c vm.c
$(CC) -g -o bin/$@ $^ -lSDL $(CFLAGS)
as:
svmas:
$(MAKE) -C as
test: exp

View file

@ -1,6 +1,6 @@
all: as
all: svmas
as: as.c tokens.c ../mnemonics.c ../disassembler.c
svmas: as.c tokens.c ../mnemonics.c ../disassembler.c
gcc -g -o ../bin/$@ $^
tokens.c: tokens.y

View file

@ -1,13 +0,0 @@
#!/bin/sh
ASMFILE=$1.asm
BINFILE=`echo $ASMFILE | sed "s|\.asm\$|\.bin|"`
EXPFILE=`echo $BINFILE | sed "s|\.bin\$|\.exp|"`
echo $ASMFILE
echo $BINFILE
echo $EXPFILE
./bin/as -o $BINFILE $ASMFILE -Ls
./bin/explink -o $EXPFILE -c $BINFILE
rm $BINFILE