Makefile
author Dmitriy Morozov <dmitriy@mrzv.org>
Fri, 24 Jun 2011 09:57:10 -0700 (2011-06-24)
changeset 9 6f17855970fc
parent 7 a01d4a949adf
child 10 118b5e4e0f9b
permissions -rw-r--r--
Page selector works correctly with Ipe 7.0.14
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     1
# --------------------------------------------------------------------
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     2
# Makefile for IpePresenter
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     3
# --------------------------------------------------------------------
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     4
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     5
QT_CFLAGS = -I/usr/include/QtGui -I/usr/include/QtCore
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     6
QT_LIBS = -lQtGui -lQtCore
3
b239dd8c8689 Added notes display (Ipe 7.0.11)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 1
diff changeset
     7
CPPFLAGS += $(QT_CFLAGS)
b239dd8c8689 Added notes display (Ipe 7.0.11)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 1
diff changeset
     8
LIBS += -lipeqtcanvas -lipecairo -lipe $(QT_LIBS) $(CAIRO_LIBS)
4
f7d6064291f0 Added make install + Monospace font for notes
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 3
diff changeset
     9
DESTDIR=/usr/bin
0
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    10
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    11
OBJECTS = mainwindow.o moc_mainwindow.o canvasview.o moc_canvasview.o \
7
a01d4a949adf Switched to Ipe's own PageSelector instead of the internal PageDialog (requires Ipe 7.0.13)
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 4
diff changeset
    12
		  timelabel.o moc_timelabel.o 
0
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    13
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    14
# .INTERMEDIATE: $(OBJECTS)		  
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    15
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    16
all: ipepresenter
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    17
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    18
moc_%.cpp: %.h
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    19
	moc -o $@ $<
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    20
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    21
# %.o: %.cpp
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    22
#     g++ $< -c $(CPPFLAGS)
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    23
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    24
# moc_%.o: moc_%.cpp
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    25
#     g++ $< -c $(CPPFLAGS)
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    26
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    27
ui_%.h: %.ui
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    28
	uic $< > $@
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    29
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    30
mainwindow.o: mainwindow.cpp ui_mainwindow.h
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    31
	g++ $< -c $(CPPFLAGS)
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    32
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    33
ipepresenter: $(OBJECTS)
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    34
	g++ $+ -o $@ $(LIBS)
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    35
4
f7d6064291f0 Added make install + Monospace font for notes
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 3
diff changeset
    36
install: ipepresenter
f7d6064291f0 Added make install + Monospace font for notes
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 3
diff changeset
    37
	install -m 755 ipepresenter $(DESTDIR)
f7d6064291f0 Added make install + Monospace font for notes
Dmitriy Morozov <dmitriy@mrzv.org>
parents: 3
diff changeset
    38
0
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    39
clean:
7726fefc58a4 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    40
	rm $(OBJECTS)