summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-11-20 13:57:25 +0000
committerCamil Staps2016-11-20 13:57:25 +0000
commit19c320ccef8373f21667ee37538e9acfb871e680 (patch)
tree43d5d499ebbaa01ff862bd27de3d37bd75d45778
parentFix cgopts.s (diff)
Fix compilation order for compliance with clm
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2e4463d..7071797 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
EXE:=test acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice rfib sieve squeen str_arit stwice tak twice war_seq
OBJ:=$(addsuffix .o,$(EXE))
ASM:=$(addsuffix .s,$(EXE))
-DEPS_O:=cgopts.o _system.o
+DEPS_O:=_system.o cgopts.o
SECONDARY:=_system.s
-CC:=arm-linux-gnueabihf-gcc
+CC:=gcc
CLM:=clm
CG:=/home/pi/cg/cg
-AS:=arm-linux-gnueabihf-as
+AS:=as
ASFLAGS:=-g -march=armv8-a+crc -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --gstabs
CFLAGS:=-g -march=armv8-a+crc -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -mtune=cortex-a53 -Wall
@@ -26,9 +26,10 @@ $(OBJ): %.o: %.s
$(AS) -o $@ $< $(ASFLAGS)
$(EXE): %: %.o $(DEPS_O)
- $(CC) -o $@ $<\
+ $(CC) -o $@\
$(RTS)\
$(DEPS_O)\
+ $<\
-lc -lm\
$(CFLAGS)