-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
29 lines (22 loc) · 851 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
29
INC_DIR = ./Valkyrie/include
SRC_DIR = ./Valkyrie/src
OBJ_DIR = ./Valkyrie/object
SRC_FILES = $(wildcard $(SRC_DIR)/*.cpp)
OBJ_FILES = $(SRC_FILES:.cpp=.o)
OBJ_PATH = $(patsubst $(SRC_DIR)/%,$(OBJ_DIR)/%,$(OBJ_FILES))
LIBS=
CC=clang++-3.5
CFLAGS=-rdynamic -g -O3 -m64 `llvm-config-3.5 --cxxflags --ldflags --system-libs --libs core mcjit native bitwriter`
all: init mushroomcloud valkyrie
init:
mkdir -p ./bin
mkdir -p MushroomCloud/bin
mushroomcloud:
javac -d MushroomCloud/bin/ -cp MushroomCloud/src:"MushroomCloud/lib/*" -sourcepath MushroomCloud/src MushroomCloud/src/edu/buffalo/cse562/Main.java
jar cvfm bin/MushroomCloud.jar MushroomCloud/Manifest.txt -C MushroomCloud/bin/ .
cp -a MushroomCloud/lib/. ./bin/
valkyrie:
$(CC) $(SRC_DIR)/*.cpp $(CFLAGS) -o bin/llvmruntime -I$(INC_DIR)
clean:
rm -r MushroomCloud/bin
rm -r ./bin