-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 809 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 809 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
CC=g++
CFLAGS=-std=c++11 -Iext -Isrc -Lext/message_2.a -fno-stack-protector
EDIR=ext
BDIR=bin
ODIR=obj
SDIR=src
TDIR=test
LDIR=log
all: clean mount install $(BDIR)/main
$(BDIR)/main: $(ODIR)/main.o $(EDIR)/Message.h
$(CC) $(CFLAGS) -o $(BDIR)/main $(ODIR)/main.o $(EDIR)/message_2.a
$(ODIR)/main.o: $(SDIR)/main.cpp $(EDIR)/Message.h
$(CC) $(CFLAGS) -o $(ODIR)/main.o -c $(SDIR)/main.cpp
install:
wget -P $(EDIR) https://github.com/Zephyr-Queueing/Quartz-Model/releases/download/gcc-7.5-release/message_2.a;
wget -P $(EDIR) https://github.com/Zephyr-Queueing/Quartz-Model/releases/download/v1.0.4/Message.h;
wget -P $(EDIR) https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
mount:
mkdir $(EDIR) $(BDIR) $(ODIR)
clean:
rm -rf $(EDIR) $(BDIR) $(ODIR) $(LDIR)