diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2,10 +2,17 @@ CC = gcc CFLAGS = -Wall SOURCES = $(addprefix src/, whatfiles.c attach.c utilities.c hashmap.c strings.c) +ARCH = $(shell uname -m) +ifeq ($(findstring arm,$(ARCH)), arm) + ARCH_DIR = arm32 +else + ARCH_DIR = x86_64 +endif + all: bin/whatfiles bin/whatfiles: $(SOURCES) - $(CC) $(CFLAGS) -o $@ $(SOURCES) + $(CC) $(CFLAGS) -o $@ $(SOURCES) src/$(ARCH_DIR)/registers.c # utils |