-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 720 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 720 Bytes
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
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -std=c++11 -fopenmp
OBJS = src/main.o src/fastpool.o
LIBS =
TARGET = emcpp
CROSS ?=
AR := $(CROSS)ar
AS := $(CROSS)as
CC := $(CROSS)gcc
CPP := $(CROSS)gcc -E
CXX := $(CROSS)g++
LD := $(CROSS)g++
NM := $(CROSS)nm
OBJCOPY := $(CROSS)objcopy
OBJDUMP := $(CROSS)objdump
SIZE := $(CROSS)size
# Add -fopenmp for OMP
$(TARGET): $(OBJS) Makefile src/Memory.h
$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
$(TARGET).s: $(TARGET)
echo $(OBJDUMP) -S --disassemble $(TARGET) > $(TARGET).s
all: $(TARGET) $(TARGET).s
clean:
rm -f $(OBJS) $(TARGET) $(TARGET).s