forked from Vorago/iwb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 936 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 936 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
SOURCES = analysis.cpp capture.cpp main.cpp presentation.cpp scroller.cpp \
handler.cpp drawable.cpp touchable.cpp camera.cpp application.cpp \
confirmation.cpp moc_mainwindow.cpp mainwindow.cpp imageFrame.cpp
OBJECTS = $(SOURCES:%.cpp=$(OBJECTSFOLDER)/%.o)
OBJECTSFOLDER=objects
TARGET = iwb
LIBCONFIG = $(shell pkg-config --libs opencv QtGui QtCore)
INCLUDE = $(shell pkg-config --cflags-only-I QtGui QtCore)
LDFLAGS = $(LIBS) $(LIBCONFIG)
CC = g++
MOC = moc
DEBUG = -g
CFLAGS = -c -Wall -Wextra $(INCLUDE)
$(TARGET): $(OBJECTS)
$(CC) $(LFLAGS) $(DEBUG) $(OBJECTS) $(LDFLAGS) -o $(TARGET)
$(OBJECTSFOLDER)/%.o: %.cpp
$(shell mkdir -p objects/)
$(CC) $(CFLAGS) $(DEBUG) $< -o $@
moc_mainwindow.cpp:
$(MOC) -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. include/mainwindow.h -o moc_mainwindow.cpp
clean:
rm -rf $(TARGET) objects/ moc_mainwindow.cpp