####### Compiler, tools and options
DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
CXX = g++
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/usr/local/Trolltech/Qt-4.4.3-Static/include \
-I/usr/local/Trolltech/Qt-4.4.3-Static/include/QtCore \
-I/usr/local/Trolltech/Qt-4.4.3-Static/include/QtGui
LINK = g++
LFLAGS = -pthread
LIBS = -L/usr/X11R6/lib -L/usr/local/Trolltech/Qt-4.4.3-Static/lib \
-Wl,-Bstatic -lexiv2 -lQtGui -lQtCore \
-Wl,-Bdynamic -lpng -lSM -lICE -lXi -lXrender \
-lXrandr -lfreetype -lfontconfig -lXext -lX11 -lz -lm \
-lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
DEL_FILE = rm -f
####### Files
SOURCES = iMage_filearea.cpp \
iMage_imagearea.cpp \
iMage_imageheader.cpp \
iMage_main.cpp \
iMage_orientationdialog.cpp \
iMage_picturearea.cpp \
iMage_workarea.cpp \
moc_iMage_filearea.cpp \
moc_iMage_imagearea.cpp \
moc_iMage_orientationdialog.cpp \
moc_iMage_workarea.cpp
OBJECTS = iMage_filearea.o \
iMage_imagearea.o \
iMage_imageheader.o \
iMage_main.o \
iMage_orientationdialog.o \
iMage_picturearea.o \
iMage_workarea.o \
moc_iMage_filearea.o \
moc_iMage_imagearea.o \
moc_iMage_orientationdialog.o \
moc_iMage_workarea.o
TARGET = iMage
####### Build rules
all: Makefile $(TARGET)
clean:
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Link
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
####### Compile
iMage_filearea.o: iMage_filearea.cpp iMage_filearea.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_filearea.o iMage_filearea.cpp
iMage_imagearea.o: iMage_imagearea.cpp iMage_imagearea.hpp \
iMage_workarea.hpp \
iMage_imageheader.hpp \
iMage_orientationdialog.hpp \
iMage_picturearea.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_imagearea.o iMage_imagearea.cpp
iMage_imageheader.o: iMage_imageheader.cpp iMage_imageheader.hpp \
iMage_orientationdialog.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_imageheader.o iMage_imageheader.cpp
iMage_main.o: iMage_main.cpp iMage_workarea.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_main.o iMage_main.cpp
iMage_orientationdialog.o: iMage_orientationdialog.cpp iMage_orientationdialog.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_orientationdialog.o iMage_orientationdialog.cpp
iMage_picturearea.o: iMage_picturearea.cpp iMage_picturearea.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_picturearea.o iMage_picturearea.cpp
iMage_workarea.o: iMage_workarea.cpp iMage_workarea.hpp \
iMage_filearea.hpp \
iMage_imagearea.hpp \
iMage_imageheader.hpp \
iMage_orientationdialog.hpp \
iMage_picturearea.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o iMage_workarea.o iMage_workarea.cpp
moc_iMage_filearea.o: moc_iMage_filearea.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_iMage_filearea.o moc_iMage_filearea.cpp
moc_iMage_imagearea.o: moc_iMage_imagearea.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_iMage_imagearea.o moc_iMage_imagearea.cpp
moc_iMage_orientationdialog.o: moc_iMage_orientationdialog.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_iMage_orientationdialog.o moc_iMage_orientationdialog.cpp
moc_iMage_workarea.o: moc_iMage_workarea.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_iMage_workarea.o moc_iMage_workarea.cpp
######## End of Makefile
Bookmarks