-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 699 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (33 loc) · 699 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
42
43
44
# Makefile for building github.com/BikeLinc/BuildTool
# TARGET
TARGET=BuildTool
# COMPILER
CC=g++
CPPSTD=-std=c++11
# SOURCES
SRC=./src/
TOOL2SRC=./tool2src/
CPPSOURCES=$(wildcard $(SRC)*.cpp)
TOOL2SOURCES=$(wildcard $(TOOL2SRC)*.cpp)
# BUILD
OUT=./build/
all: build-tool build-tool2
build-tool:
@echo Building BuildTool...
@rm -rf build
@mkdir build
$(CC) $(CPPSOURCES) -o $(OUT)$(TARGET) $(CPPSTD)
build-tool2:
@echo Building Tool2...
@rm -rf build2
@mkdir build2
$(CC) $(TOOL2SOURCES) -o ./build2/$(TARGET)2 $(CPPSTD)
run:
@echo Running BuildTool...
@$(OUT)$(TARGET)
tool2: build-tool2
@echo Running Tool2...
@./build2/BuildTool2
clean:
rm -rf build
rm -rf build 2