Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 17 Jan 2011 09:08:22 -0800
changeset 8 6e21d1f3b806
parent 7 a01d4a949adf
child 10 118b5e4e0f9b
permissions -rw-r--r--
Added next/previous page

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

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

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
	g++ $< -c $(CPPFLAGS)

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

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

clean:
	rm $(OBJECTS)