#############################################################################
# Makefile for building ./cloverpaint
# Generated by tmake at 00:00, 2008/02/25
#     Project: clover
#    Template: app
#############################################################################

####### Compiler, tools and options

CC	=	arm-linux-gcc
CXX	=	arm-linux-g++
CFLAGS	=	-pipe -Wall -W -O2 -DNO_DEBUG
CXXFLAGS=	-pipe -DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG
INCPATH	=	-I$(QTDIR)/library -I$(QTDIR)/include
LINK	=	arm-linux-gcc
LFLAGS	=	-Wl,-rpath,$(QTDIR)/lib,-rpath-link,$(QTDIR)/lib
LIBS	=	$(SUBLIBS) -L$(QTDIR)/lib -lqpe -lsl -lqte
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	blur2_normal.h \
		blur2_reverse.h \
		blur_normal.h \
		blur_reverse.h \
		brush2_normal.h \
		brush2_reverse.h \
		brush_normal.h \
		brush_reverse.h \
		brushsize11.h \
		brushsize17.h \
		brushsize25.h \
		brushsize33.h \
		brushsize65.h \
		brushsize99.h \
		clover.h \
		clovericon.h \
		cloverimage.h \
		div255.h \
		divInv360.h \
		eraser2_normal.h \
		eraser2_reverse.h \
		eraser_normal.h \
		eraser_reverse.h \
		eraserimage.h \
		filemenu_normal.h \
		filemenu_reverse.h \
		fill_normal.h \
		fill_reverse.h \
		hand.h \
		hue.h \
		layer_bottom_background.h \
		layer_bottom_normal.h \
		layer_bottom_reverse.h \
		layer_free.h \
		layer_hogo.h \
		layer_invisible.h \
		layer_nomode.h \
		layer_normal.h \
		layer_reverse.h \
		layer_top.h \
		layer_top_normal.h \
		layer_top_reverse.h \
		layer_visible.h \
		lupe_normal.h \
		lupe_normal2.h \
		lupe_reverse.h \
		lupe_reverse2.h \
		mesh_normal.h \
		mesh_reverse.h \
		mode_normal.h \
		mode_reverse.h \
		palette_normal.h \
		palette_reverse.h \
		pencil_normal.h \
		pencil_reverse.h \
		penimage.h \
		pensize_normal.h \
		pensize_reverse.h \
		scale_normal.h \
		scale_reverse.h \
		selectHide.h \
		select_center.h \
		select_normal.h \
		select_reverse.h \
		sharpen_normal.h \
		sharpen_reverse.h \
		tool_normal.h \
		tool_reverse.h \
		toolbarimage.h \
		toolbarimage2_normal.h \
		toolbarimage2_reverse.h \
		toolbarimage_reverse.h
SOURCES =	canvas.cpp \
		clover.cpp \
		drawmode.cpp \
		filemenu.cpp \
		hue.cpp \
		layer.cpp \
		layermode.cpp \
		lupe.cpp \
		main.cpp \
		mesh.cpp \
		mytoolbar.cpp \
		palette.cpp \
		pensize.cpp \
		scale.cpp \
		select.cpp \
		tool.cpp
OBJECTS =	canvas.o \
		clover.o \
		drawmode.o \
		filemenu.o \
		hue.o \
		layer.o \
		layermode.o \
		lupe.o \
		main.o \
		mesh.o \
		mytoolbar.o \
		palette.o \
		pensize.o \
		scale.o \
		select.o \
		tool.o
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	moc_clover.cpp
OBJMOC	=	moc_clover.o
DIST	=	
TARGET	=	./cloverpaint
INTERFACE_DECL_PATH = .

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .C .c

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules


all: $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake: Makefile

Makefile: clover.pro
	tmake clover.pro -o Makefile

dist:
	$(TAR) clover.tar clover.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
	$(GZIP) clover.tar

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
	-rm -f *~ core

####### Sub-libraries


###### Combined headers


####### Compile

canvas.o: canvas.cpp \
		clover.h \
		cloverimage.h \
		mode_normal.h \
		mode_reverse.h \
		pensize_normal.h \
		mesh_normal.h \
		palette_normal.h \
		pensize_reverse.h \
		mesh_reverse.h \
		palette_reverse.h \
		brushsize11.h \
		brushsize17.h \
		brushsize25.h \
		brushsize33.h \
		brushsize65.h \
		brushsize99.h

clover.o: clover.cpp \
		clover.h \
		clovericon.h

drawmode.o: drawmode.cpp \
		clover.h

filemenu.o: filemenu.cpp \
		clover.h \
		filemenu_normal.h \
		filemenu_reverse.h

hue.o: hue.cpp \
		clover.h \
		hue.h

layer.o: layer.cpp \
		clover.h \
		layer_hogo.h \
		layer_free.h \
		layer_bottom_normal.h \
		layer_bottom_reverse.h \
		layer_bottom_background.h \
		layer_top_normal.h \
		layer_top_reverse.h \
		layer_normal.h \
		layer_nomode.h \
		layer_visible.h \
		layer_invisible.h

layermode.o: layermode.cpp \
		clover.h

lupe.o: lupe.cpp \
		clover.h \
		lupe_normal.h \
		lupe_reverse.h \
		lupe_normal2.h \
		lupe_reverse2.h

main.o: main.cpp \
		clover.h

mesh.o: mesh.cpp \
		clover.h

mytoolbar.o: mytoolbar.cpp \
		clover.h \
		toolbarimage.h \
		toolbarimage_reverse.h \
		eraser_normal.h \
		eraser_reverse.h \
		eraser2_normal.h \
		eraser2_reverse.h \
		pencil_normal.h \
		pencil_reverse.h \
		brush_normal.h \
		brush_reverse.h \
		brush2_normal.h \
		brush2_reverse.h \
		blur_normal.h \
		blur_reverse.h \
		blur2_normal.h \
		blur2_reverse.h \
		sharpen_normal.h \
		sharpen_reverse.h \
		fill_normal.h \
		fill_reverse.h \
		hand.h \
		selectHide.h

palette.o: palette.cpp \
		clover.h

pensize.o: pensize.cpp \
		clover.h

scale.o: scale.cpp \
		clover.h \
		scale_normal.h \
		scale_reverse.h \
		select_center.h

select.o: select.cpp \
		clover.h \
		select_normal.h \
		select_reverse.h

tool.o: tool.cpp \
		clover.h \
		tool_normal.h \
		tool_reverse.h

moc_clover.o: moc_clover.cpp \
		clover.h

moc_clover.cpp: clover.h
	$(MOC) clover.h -o moc_clover.cpp

