Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The compiler that will be used
- CC=cl.exe
- #Source directory
- SRCDIR = .\src
- #Directory where the common source files are located
- COMMONDIR = .\Common\src
- INTERFACEDIR = .\Interface\src
- #Declare the MetaObject Compiler
- MOC = C:\OpenCASCADE6.7.1\qt462-vc9-32\bin\moc.exe
- #Store the output of the MOC in this directory
- MOCDIR = .\src\moc
- PROJECT_INCLUDES = -I$(COMMONDIR) -I$(INTERFACEDIR)
- CASCADE_INCLUDES = -IC:\OpenCASCADE6.7.1\qt462-vc9-32\include \
- -IC:\OpenCASCADE6.7.1\opencascade-6.7.1\inc
- #-IC:\OpenCASCADE6.7.1\opencascade-6.7.1\src
- WIN_SDK_INCLUDES = -IC:\Program\ Files\ (x86)\Microsoft\ Visual\ Studio\ 11.0\VC\INCLUDE \
- -IC:\Program\ Files\ (x86)\Windows\ Kits\8.0\include\shared \
- -IC:\Program\ Files\ (x86)\Windows\ Kits\8.0\include\um \
- -IC:\Program\ Files\ (x86)\Windows\ Kits\8.0\include\winrt
- QT_INCLUDES = -IC:\OpenCASCADE6.7.1\qt462-vc9-32\include\Qt \
- -IC:\OpenCASCADE6.7.1\qt462-vc9-32\include\QtGui \
- -IC:\OpenCASCADE6.7.1\qt462-vc9-32\include\QtCore
- LIB += -LC:\Program\ Files\ (x86)\Microsoft\ Visual\ Studio\ 11.0\VC\LIB \
- -LC:\Program\ Files\ (x86)\Windows\ Kits\8.0\lib\win8\um\x86 \
- -LC:\OpenCASCADE6.7.1\opencascade-6.7.1\win32\vc9\lib
- DEFINES = -DWIN32 \
- -DCSFDB \
- -DNDEBUG \
- -DWNT \
- -DNO_COMMONSAMPLE_EXPORTS \
- -DNO_IESAMPLE_EXPORTS \
- -DQT_DLL \
- -DQT_NO_DEBUG \
- -DQT_GUI_LIB \
- -DQT_CORE_LIB \
- -DQT_THREAD_SUPPORT
- ALL_INCLUDES = $(PROJECT_INCLUDES) $(CASCADE_INCLUDES) $(WIN_SDK_INCLUDES) $(QT_INCLUDES)
- #This target has one dependency but no rules
- all: tutorial
- #If a target does not have any dependencies just write targetname: <CR> and
- #Then the target directives
- tutorial: Main.o ApplicationTut.o DocumentTut.o MakeBottle.o
- $(CC) Main.o ApplicationTut.o DocumentTut.o MakeBottle.o -o tutorial
- Main.o: moc_ApplicationCommon.cpp
- $(CC) $(DEFINES) $(ALL_INCLUDES) $(SRCDIR)\Main.cxx
- moc_ApplicationCommon.cpp:
- $(MOC) -o $(MOCDIR)\moc_ApplicationCommon.cpp $(COMMONDIR)\ApplicationCommon.h
- #DocumentTut utilises the Q_OBJECT directive, so we must invoke the MOC
- #The actual object is created by using the cpp and the MOC produced source
- DocumentTut.o: moc_DocumentTut.cpp
- $(CC) -c $(SRCDIR)\DocumentTut.cxx $(MOCDIR)\moc_DocumentTut.cpp
- #Write the dependency for the MOC source code
- moc_DocumentTut.cpp:
- $(MOC) -o $(MOCDIR)\moc_DocumentTut.cpp $(SRCDIR)\DocumentTut.h
- #Perform the same thing for the ApplicationTut
- ApplicationTut.o: ApplicationTut.cxx moc_ApplicationTut.cpp
- $(CC) ApplicationTut.cxx moc_ApplicationTut.cpp
- moc_ApplicationTut.cpp:
- $(MOC) -o $(MOCDIR)\moc_ApplicationTut.cpp $(SRCDIR)\ApplicationTut.h
- MakeBottle.o:
- $(CC) $(DEFINES) $(ALL_INCLUDES) $(SRCDIR)\MakeBottle.cxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement