Empty TurboC project with MAKEFILE to start real projects on.
- Locate Your TurboC installation - ex.
C:\dosroot\turboc
. - Copy contents of this boiler plate to somewhere like
C:\dosroot\projects\myfirst
. - Make copy of
MAKEFILE.LOC.template
namedMAKEFILE.LOC
. - Edit
MAKEFILE.LOC
to set Your local paths used inMAKEFILE
. - Edit
MAKEFILE
to match Your needs - compiler options, memory models etc. - You may edit the
compile.bat
, which makes compiling and running Your project in DOSbox lot easier.
- Create Your new
*.c
file somewhere in thesrc
directory (or wherever else You wish). - Make sure that the filename is unique among all other used source files.
- Add the file to
OBJS
inMAKEFILE
. - If You introduced a new source directory, add new rule to
MAKEFILE
:
{src\test}.c.obj:
$(CC) $(CFLAGS) -c $<
Files to be versioned are:
MAKEFILE
MAKEFILE.LOC.template
to show other developers what should theirMAKEFILE.LOC
look like.- Your source files.
Files not to be versioned:
MAKEFILE.LOC
as it may differ from developer to developer to match their local environment.compile.bat
as it is specific to every developer's DOSbox installation.