forked from jratcliff63367/sse2neon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 741 Bytes
/
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
#makefile to compile multiple Cpp files
#user defined variables
#The C compiler to use
CC = g++
#C flags
CFLAGS = -Wall -mfpu=neon
#Preprocessor flags like include paths
CPPFLAGS+= -I.
#Add libraries to this, e.g. -lm for the math library
LDFLAGS := -lm
#List of C source files
SRCS := $(wildcard *.cpp)
#program name
BINARY = test.out
#header files and dependcies
DEPS = SSE2NEON.h SSE2NEONBinding.h SSE2NEONTEST.h
$(BINARY) : $(SRCS) $(DEPS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SRCS) -o $@
# $@ is an inbuilt (automatic) variable that gives the name of the target
#$< is an inbuilt (automatic) variable that gives the name of the first (or only) prerequisite.
.PHONY: clean
clean :
-rm $(BINARY) *.o *.out 2> /dev/null