Click to See Complete Forum and Search --> : How to use devstudio for other compiler


Michel Wassink
June 9th, 1999, 02:49 AM
I am working with microcontrollers, with uses an other dos compiler.
How can i use the devstudio ide to build a new program. Must i make a makefile or something?
and what should be in it?

,,,^..^,,,
Michel

Roger Allen
June 9th, 1999, 03:55 AM
I created a makefile in DOS that sets up the defaults for my projects as follows :

// this section controls the whole build...
// list the dependencies
glpka.abs : actions.obj assay.obj asshelp.obj autosamp.obj curve.obj \
dispense.obj display.obj distrib.obj electrod.obj etc...
blink // this does the link stage (batch file)

// for each file in the project list above, list the files that it is dependant on
// and then on the following line how to compile it and with what options
actions.obj : actions.c defines.h register.h
c51 actions.c large noamake symbols order

assay.obj : assay.c defines.h register.h
c51 assay.c large noamake symbols order

asshelp.obj : asshelp.c defines.h register.h
c51 asshelp.c large noamake symbols order

autosamp.obj : autosamp.c defines.h register.h
c51 autosamp.c large noamake symbols order

curve.obj : curve.c defines.h register.h
c51 curve.c large noamake symbols order

etc...



The example above uses the KEIL C51 compiler and L51 / BL51 linker in devstudio.
When I opened the .MAK file in Devstudio, I was prompted to wrap the makefile in a project.
This happens with no problems. You may need to make sure that your PATH or your
TOOLS:OPTIONS:DIRECTORIES have the correct paths to the LIB/INCLUDE directories required
for your compiler.

HTH


Roger Allen

Michel Wassink
June 9th, 1999, 05:02 AM
thanx I will try it soon or after my holiday.

,,,^..^,,,
Michel