Generated Makefile for Linux / GNU gcc
#############################################################################
# Makefile for building hello
# Generated by tmake at 00:20, 2003/09/16
# Project: hello.pro
# Template: app
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
CFLAGS = -pipe -Wall -W -O2 -DNO_DEBUG
CXXFLAGS= -pipe -Wall -W -O2 -DNO_DEBUG
INCPATH = -I$(QTDIR)/include
LINK = g++
LFLAGS =
LIBS = -L$(QTDIR)/lib -L/usr/X11R6/lib $(SUBLIBS) -lqt -lXext -lX11 -lm
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
REMOVE = rm -f
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = hello.h
SOURCES = hello.cpp \
main.cpp
OBJECTS = hello.o \
main.o
INTERFACES =
UICDECLS =
UICIMPLS =
SRCMOC = moc_hello.cpp
OBJMOC = moc_hello.o
DIST =
TARGET = hello
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)
$(REMOVE) $(TARGET)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
moc: $(SRCMOC)
tmake:
tmake hello.pro
dist:
$(REMOVE) Makefile *.kdevprj *.kdevses
clean:
$(REMOVE) $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
$(REMOVE) core *~
####### Compile
hello.o: hello.cpp \
hello.h
main.o: main.cpp \
hello.h
moc_hello.o: moc_hello.cpp \
hello.h
moc_hello.cpp: hello.h
$(MOC) hello.h -o moc_hello.cpp