Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 23 Feb 2015 18:38:49 -0800
changeset 17 d0b0ea368ce9
parent 16 18267210c228
child 19 04a7e1ba22c4
permissions -rw-r--r--
selectPageOrView() moved to CanvasBase

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

CXX=g++

QT_CFLAGS = -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4
QT_LIBS = -lQtGui -lQtCore
CPPFLAGS += $(QT_CFLAGS)
LIBS += -lipecanvas -lipecairo -lipe $(QT_LIBS) $(CAIRO_LIBS)
DESTDIR=/usr/bin

MOC=moc-qt4
UIC=uic-qt4

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)