-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 834 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 834 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
35
36
37
38
39
40
41
CXXFLAGS=-std=c++17 -rdynamic -O3 -funroll-loops -fdiagnostics-color=always -Wall -Wextra -Wno-error=unused -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-unused-parameter -Wnull-dereference -Werror -Wno-deprecated-declarations
ifeq ($(OS), Windows_NT)
UNAME := Windows
else
UNAME := $(shell uname)
endif
ifeq (${UNAME}, Linux)
LIBS = -lrt
else
LIBS =
endif
RCLIB=$(wildcard RC/*.h)
TARGET=runvenv
all: $(TARGET) helpers
$(TARGET): runvenv.cpp $(RCLIB)
$(CXX) -o runvenv runvenv.cpp $(CXXFLAGS) $(LIBS)
ifeq (${UNAME}, Windows)
runpip: $(TARGET)
cp runvenv runpip
else
runpip: $(TARGET)
ln -sf runvenv runpip
endif
ifeq (${UNAME}, Windows)
runipyth: $(TARGET)
cp runvenv runipyth
else
runipyth: $(TARGET)
ln -sf runvenv runipyth
endif
helpers: runpip runipyth
clean:
rm -f $(TARGET)