Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 01 Feb 2016 11:11:46 -0800
changeset 22 c62a23291b60
parent 21 b714decd7d5b
permissions -rw-r--r--
Lukas Barth's patch for Ipe 7.2.2

# --------------------------------------------------------------------
# Makefile for IpePresenter
# --------------------------------------------------------------------

CXX=g++

QT_CFLAGS = -fPIC -std=c++11 -I/usr/include/qt/QtGui -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtCore -I/usr/include/qt
QT_LIBS = -lQt5Gui -lQt5Core -lQt5Widgets
CPPFLAGS += $(QT_CFLAGS)
LIBS += -lipecanvas -lipecairo -lipe $(QT_LIBS) $(CAIRO_LIBS)
DESTDIR=/usr/bin

MOC=moc
UIC=uic

OBJECTS = mainwindow.o moc_mainwindow.o canvasview.o moc_canvasview.o \
		  timelabel.o moc_timelabel.o 

# .INTERMEDIATE: $(OBJECTS)		  

all: ipepresenter

moc_%.cpp: %.h
	$(MOC) -o $@ $<

# %.o: %.cpp
#     g++ $< -c $(CPPFLAGS)

# moc_%.o: moc_%.cpp
#     g++ $< -c $(CPPFLAGS)

ui_%.h: %.ui
	$(UIC) $< > $@

mainwindow.o: mainwindow.cpp ui_mainwindow.h
	$(CXX) $< -c $(CPPFLAGS)

ipepresenter: $(OBJECTS)
	$(CXX) $+ -o $@ $(LIBS)

install: ipepresenter
	install -m 755 ipepresenter $(DESTDIR)

clean:
	rm $(OBJECTS)