Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Tue, 09 Nov 2010 22:32:37 -0800
changeset 2 035dc97b8d04
parent 1 14e9780340d7
child 3 b239dd8c8689
permissions -rw-r--r--
Jumping to a page offers view selection

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

IPESOURCE = $(HOME)/Projects/Ipe/otfried-mod/

QT_CFLAGS = -I/usr/include/QtGui -I/usr/include/QtCore
QT_LIBS = -lQtGui -lQtCore
CPPFLAGS += -I$(IPESOURCE)/src/ipeqtcanvas $(QT_CFLAGS)
LIBS += -lipeqtcanvas -lipecairo -lipe $(QT_LIBS) $(CAIRO_LIBS) -L$(IPESOURCE)/build/lib

OBJECTS = mainwindow.o moc_mainwindow.o canvasview.o moc_canvasview.o \
		  timelabel.o moc_timelabel.o pagedialog.o moc_pagedialog.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)

clean:
	rm $(OBJECTS)