-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 1.13 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
# Worker+ build file
# Written and created by Aria Khoshnood
# This build file is optimized for Linux, Windows and MacOS
# Uncomment the commands and variables needed to build this project on Windows.
# Notice: Cygwin is required to build for Windows envrionment
CC = g++
# Uncommnet this line to compile this program without terminal in Windows
# CFLAGS = -mwindows
# Change the file extension to the OS specific executable extension.
# OBJ = main.exe
OBJ = main
# Add extra flag processing and calculation flags
CPP_LIB = lib/bootstraper.cpp lib/flags.cpp
build: prebuild
$(CC) -g main.cpp $(CPP_LIB) -o $(DIR)/$(OBJ) #$(CFLAGS)
# Windows prebuild action
# prebuild:
# if exist ".\build\" echo "Dir exists" else mkdir ".\build\"
# Specify tagrting operating system.
# Linux = linux
# Windows = win32
# MacOS = darwin
PLATFORM = linux
# Finding the output targeting dirctory
DIR = $$(find ./out -type d -name "*$(PLATFORM)*")
prebuild:
# Development build dirctory
# if [ -d "./build" ]; then echo "Dir exists"; else mkdir build; fi
# Electron build to create out folder
npm install;\
npm run package