cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Make File Compiler Flag explanation

SOLVED
Highlighted
Moonstone

Make File Compiler Flag explanation

Can anyone explain this compiler flag in Creo Toolkit Make File

 

MACH = -DPRO_MACHINE=36 -DPRO_OS=4
CCFLAGS = -c -GS -fp:precise -D_WSTDIO_DEFINED
CFLAGS = $(CCFLAGS) $(INCS) $(MACH)

 Why we defining DPRO_MACHINE = 36 & DPRO_OS=4 ?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Make File Compiler Flag explanation

Per my knowledge

DPRO_MACHINE = 36 is for X86E_WIN64

DPRO_OS = 4 is for WINDOWS

And those are used to set PreprocessorDefinitions.

 

FYI: 

LINUX : 34
IA64_NT : 35
X86E_WIN64 : 36
X86E_LINUX64 : 37
APPLE_OSX : 38

/* Operating systems */
VMS_OS : 1
UNIX_OS : 3
WINDOWS_32 : 4

 

Hope that helps Smiley Happy

Madhavi 

3 REPLIES 3

Re: Make File Compiler Flag explanation

Per my knowledge

DPRO_MACHINE = 36 is for X86E_WIN64

DPRO_OS = 4 is for WINDOWS

And those are used to set PreprocessorDefinitions.

 

FYI: 

LINUX : 34
IA64_NT : 35
X86E_WIN64 : 36
X86E_LINUX64 : 37
APPLE_OSX : 38

/* Operating systems */
VMS_OS : 1
UNIX_OS : 3
WINDOWS_32 : 4

 

Hope that helps Smiley Happy

Madhavi 

Re: Make File Compiler Flag explanation

Do you've any web link for that or any other material for that?

Re: Make File Compiler Flag explanation

@PARHTIBAN_K Sorry I do not have any web link or seperate material for that.

It's something I came across/understood when I started working with Toolkit.