home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
qt3_emx.zip
/
examples
/
tablet
/
Makefile
< prev
next >
Wrap
Makefile
|
2001-10-31
|
5KB
|
186 lines
#############################################################################
# Makefile for building: tablet
# Generated by qmake on: Wed Oct 31 19:39:29 2001
# Project: tablet.pro
# Template: app app
# Command: $(QMAKE) tablet.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_ -Zomf -fno-exceptions -Wall -W -O2 -DQT_NO_DEBUG
CXXFLAGS = -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_ -Zomf -fno-exceptions -Wall -W -O2 -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -IF:/XFree86/include -I$(QTDIR)/include -I.moc/release/ -IG:/qtrel/mkspecs/emx-gcc
LINK = g++
LFLAGS = -Zomf -Zcrtdll -Zexe -Zmtd -fno-exceptions
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -LF:/XFree86/lib -lqt -lICE -lSM -ldl -lXext -lX11 -lm
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL = rm -f
MOVE = mv
####### Output directory
OBJECTS_DIR = .obj/release/
####### Files
HEADERS = canvas.h \
scribble.h \
tabletstats.h
SOURCES = canvas.cpp \
main.cpp \
scribble.cpp \
tabletstats.cpp
OBJECTS = .obj/release/canvas.o \
.obj/release/main.o \
.obj/release/scribble.o \
.obj/release/tabletstats.o \
.obj/release/tabletstatsbase.o
FORMS = tabletstatsbase.ui
UICDECLS = tabletstatsbase.h
UICIMPLS = tabletstatsbase.cpp
SRCMOC = .moc/release/moc_canvas.cpp \
.moc/release/moc_scribble.cpp \
.moc/release/moc_tabletstats.cpp \
.moc/release/moc_tabletstatsbase.cpp
OBJMOC = .obj/release/moc_canvas.o \
.obj/release/moc_scribble.o \
.obj/release/moc_tabletstats.o \
.obj/release/moc_tabletstatsbase.o
DIST =
QMAKE_TARGET = tablet
DESTDIR =
TARGET = tablet
first: all
####### 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: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
mocables: $(SRCMOC)
$(MOC):
( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile: tablet.pro ../../.qmake.cache
$(QMAKE) tablet.pro
qmake:
@$(QMAKE) tablet.pro
dist:
@mkdir -p .obj/release/tablet && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/tablet/ && ( cd `dirname .obj/release/tablet` && $(TAR) tablet.tar tablet && $(GZIP) tablet.tar ) && mv `dirname .obj/release/tablet`/tablet.tar.gz . && rm -rf .obj/release/tablet
mocclean:
-rm -f $(OBJMOC)
-rm -f $(SRCMOC)
uiclean:
-rm -f $(UICIMPLS) $(UICDECLS)
clean: mocclean uiclean
-rm -f $(OBJECTS)
-rm -f *~ core *.core
####### Sub-libraries
distclean: clean
-rm -f $(TARGET) $(TARGET)
####### Compile
.obj/release/canvas.o: canvas.cpp canvas.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/canvas.o canvas.cpp
.obj/release/main.o: main.cpp scribble.h \
tabletstats.h \
canvas.h \
tabletstatsbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/main.o main.cpp
.obj/release/scribble.o: scribble.cpp canvas.h \
scribble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/scribble.o scribble.cpp
.obj/release/tabletstats.o: tabletstats.cpp tabletstats.h \
canvas.h \
tabletstatsbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/tabletstats.o tabletstats.cpp
tabletstatsbase.h: tabletstatsbase.ui
$(UIC) tabletstatsbase.ui -o tabletstatsbase.h
tabletstatsbase.cpp: tabletstatsbase.h tabletstatsbase.ui
$(UIC) tabletstatsbase.ui -i tabletstatsbase.h -o tabletstatsbase.cpp
.obj/release/tabletstatsbase.o: tabletstatsbase.cpp tabletstatsbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/tabletstatsbase.o tabletstatsbase.cpp
.obj/release/moc_canvas.o: .moc/release/moc_canvas.cpp canvas.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_canvas.o .moc/release/moc_canvas.cpp
.obj/release/moc_scribble.o: .moc/release/moc_scribble.cpp scribble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_scribble.o .moc/release/moc_scribble.cpp
.obj/release/moc_tabletstats.o: .moc/release/moc_tabletstats.cpp tabletstats.h canvas.h \
tabletstatsbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_tabletstats.o .moc/release/moc_tabletstats.cpp
.obj/release/moc_tabletstatsbase.o: .moc/release/moc_tabletstatsbase.cpp tabletstatsbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_tabletstatsbase.o .moc/release/moc_tabletstatsbase.cpp
.moc/release/moc_canvas.cpp: $(MOC) canvas.h
$(MOC) canvas.h -o .moc/release/moc_canvas.cpp
.moc/release/moc_scribble.cpp: $(MOC) scribble.h
$(MOC) scribble.h -o .moc/release/moc_scribble.cpp
.moc/release/moc_tabletstats.cpp: $(MOC) tabletstats.h
$(MOC) tabletstats.h -o .moc/release/moc_tabletstats.cpp
.moc/release/moc_tabletstatsbase.cpp: $(MOC) tabletstatsbase.h
$(MOC) tabletstatsbase.h -o .moc/release/moc_tabletstatsbase.cpp
####### Install
install: all