home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
qt3_emx.zip
/
examples
/
xml
/
tagreader
/
Makefile
< prev
next >
Wrap
Makefile
|
2001-10-31
|
3KB
|
124 lines
#############################################################################
# Makefile for building: tagreader
# Generated by qmake on: Wed Oct 31 19:40:16 2001
# Project: tagreader.pro
# Template: app
# Command: $(QMAKE) tagreader.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 = structureparser.h
SOURCES = tagreader.cpp \
structureparser.cpp
OBJECTS = .obj/release/tagreader.o \
.obj/release/structureparser.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC =
OBJMOC =
DIST =
QMAKE_TARGET = tagreader
DESTDIR =
TARGET = tagreader
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: tagreader.pro ../../../.qmake.cache
$(QMAKE) tagreader.pro
qmake:
@$(QMAKE) tagreader.pro
dist:
@mkdir -p .obj/release/tagreader && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/tagreader/ && ( cd `dirname .obj/release/tagreader` && $(TAR) tagreader.tar tagreader && $(GZIP) tagreader.tar ) && mv `dirname .obj/release/tagreader`/tagreader.tar.gz . && rm -rf .obj/release/tagreader
mocclean:
uiclean:
clean:
-rm -f $(OBJECTS)
-rm -f *~ core *.core
####### Sub-libraries
distclean: clean
-rm -f $(TARGET) $(TARGET)
####### Compile
.obj/release/tagreader.o: tagreader.cpp structureparser.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/tagreader.o tagreader.cpp
.obj/release/structureparser.o: structureparser.cpp structureparser.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/structureparser.o structureparser.cpp
####### Install
install: all