-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
44 lines (36 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
CC=clang
CFLAGS=-g
SRCDIR=source
SOURCE_FILES = $(SRCDIR)/armadillo.c \
$(SRCDIR)/bits.c \
$(SRCDIR)/DataProcessingImmediate.c \
$(SRCDIR)/BranchExcSys.c \
$(SRCDIR)/LoadsAndStores.c \
$(SRCDIR)/DataProcessingRegister.c \
$(SRCDIR)/DataProcessingFloatingPoint.c \
$(SRCDIR)/instruction.c \
$(SRCDIR)/strext.c \
$(SRCDIR)/utils.c
OBJECT_FILES = $(SRCDIR)/armadillo.o \
$(SRCDIR)/bits.o \
$(SRCDIR)/DataProcessingImmediate.o \
$(SRCDIR)/BranchExcSys.o \
$(SRCDIR)/LoadsAndStores.o \
$(SRCDIR)/DataProcessingRegister.o \
$(SRCDIR)/DataProcessingFloatingPoint.o \
$(SRCDIR)/instruction.o \
$(SRCDIR)/strext.o \
$(SRCDIR)/utils.o
armadillo : $(OBJECT_FILES)
$(CC) $(CFLAGS) -dynamiclib -o libarmadillo.dylib $(OBJECT_FILES)
driver85 : $(OBJECT_FILES) driver85.c linkedlist.c
$(MAKE) armadillo
$(CC) $(CFLAGS) -L. -larmadillo linkedlist.c driver85.c -o driver85
asmtestcases : asmtests
llvm-mc -triple=aarch64 -mattr=+mte,+pa,+lse,+rcpc-immo,+crc,+fmi,+fullfp16,+rdm,+dotprod,+complxnum,+fp16fml,+aes,+sm4,+sha3 \
--show-encoding --print-imm-hex -assemble < asmtests | perl asmtestgen > tests.txt
$(SRCDIR)/%.o : $(SRCDIR)/%.c $(SRCDIR)/%.h
$(CC) $(CFLAGS) -c $< -o $@
.PHONY: clean
clean :
rm libarmadillo.dylib $(OBJECT_FILES)