Hello Dev-cpp-users,
I want to implement the creation of Precompiled Headers within a
project template and have had no success in this.
Does anyone have any ideas as to how to implement it on a per project
or per template basis?
I can create precompiled headers for a project, adding the files
necessary to the source folder and altering the created project to use
the new files, but would like to have the .gch file located within the
dev-cpp\include directory so that it is available for all projects
(since most projects will be using a standard set of include files)
but I just cannot figure out how to write the makefile to achieve
this. I want to add a makefile.mak file to the project (a project
option, which is not supported when used within the project creation
wizard), and this file should enable building precompiled headers
within the dev-cpp\Include directory.
Currently the contents of this file are :
precomp.h.gch: precomp.h
$(CPP) -c precomp.h -o precomp.h.gch $(CXXFLAGS)
all-before: precomp.h.gch
Basically I would like to know if it is possible to alter the contents
of the makefile to reflect the location of the gch file?
--
Best regards,
Malcolm mailto:m.n...@wa...
|