Almost have an x86_64 assembly example working.

This commit is contained in:
Nicolás A. Ortega
2017-04-10 21:52:41 +02:00
parent 37fbe91792
commit 596c5ec5d4
3 changed files with 86 additions and 3 deletions

View File

@ -21,10 +21,12 @@
# distribution.
# Compilers
ASM=as
CC=gcc
CXX=g++
JAVAC=javac
LD=ld
FTR=gfortran
JAVAC=javac
# Other commands
RM=rm -rf
@ -32,7 +34,13 @@ RM=rm -rf
# Directories
BINDIR=bin
all: c cpp fortran java
all: x86-64asm c cpp fortran java
x86-64asm:
mkdir -p $(BINDIR)
$(ASM) -o src/main-x86_64.o src/main-x86_64.asm
$(LD) -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o \
$(BINDIR)/doublesgame-x86_64asm src/main-x86_64.o -lc
c:
mkdir -p $(BINDIR)
@ -52,4 +60,4 @@ java:
.PHONY: clean
clean:
$(RM) $(BINDIR)
$(RM) src/*.o