forked from tlgimenes/X-CubeSat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 705 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 705 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
SHELL=/bin/bash
CC=g++
MAIN=main.cpp
OBJ=src/*.o
C_FLAGS_DEBUG=-g -O0 -Wall -std=c++11
C_FLAGS_RELEASE= -O2 -std=c++11
INCLUDE_PATH=include
SQLITE3_INCLUDE=/usr/devel/include
LIBS=`pkg-config gtkmm-3.0 vte-2.90 sqlite3 --cflags --libs`
SQLITE3_LIBS=-lsqlitewrapped -lsqlite3 -L/usr/devel/lib
BOOST_LIBS=-lboost_system -lboost_thread -pthread
OUTPUT=XCubeSat_Controller
all:
cd src; make
$(CC) $(OBJ) $(MAIN) -o $(OUTPUT) $(C_FLAGS_DEBUG) -I$(SQLITE3_INCLUDE) -I$(INCLUDE_PATH) $(BOOST_LIBS) $(SQLITE3_LIBS) $(LIBS);
clean:
rm $(OUTPUT) $(LOG) $(OBJ)
debug:
cd src; make debug
$(CC) $(OBJ) $(MAIN) -o $(OUTPUT) $(C_FLAGS_DEBUG) -I$(SQLITE3_INCLUDE) -I$(INCLUDE_PATH) $(SQLITE3_LIBS) $(LIBS);