summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTheron <tspiegl@gmail.com>2020-06-28 13:14:03 -0500
committerTheron <tspiegl@gmail.com>2020-06-28 13:14:03 -0500
commit3a609585bc94c1b9385927374f1b28e63f5d6546 (patch)
treef417fe51f86b0ffa7e1de8b38bbf166a5ce7b166 /Makefile
parent0a0191bc7031dc9417818a3c8066ba4c1eacb9d8 (diff)
broaden use of ARM directory in Makefile to account for other armv7l outputs on ARM32-compatible targetsARM
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1cb0513..2f05bbb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
CC = gcc
CFLAGS = -Wall
SOURCES = $(addprefix src/, whatfiles.c attach.c utilities.c hashmap.c strings.c)
-ARCH_DIR = $(shell uname -m)
+
+ARCH = $(shell uname -m)
+ifeq ($(findstring arm,$(ARCH)), arm)
+ ARCH_DIR = arm32
+else
+ ARCH_DIR = x86_64
+endif
all: bin/whatfiles