Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 29

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

Using the API 2-7

# Paths to Tools
#
# Note: Modify the following paths to
# correspond to your environment.
#
#----------------------------------------------
CPATH = D:\MSDEV # Location of Microsoft tools
CC = $(CPATH)\bin\cl # compiler
LINK = $(CPATH)\bin\link # linker
MAKE = $(CPATH)\bin\nmake # make utility

#----------------------------------------------
# Path to API Library and Include file
#
# Note: Modify the following paths to
# correspond to your environment.
#
#----------------------------------------------
APILIB = ..\api\lib\ocapi.lib # Path to Open Controller API library
APIINC = ..\api\include # Path to Open Controller API include file

#----------------------------------
# Compiler/Linker Debugging Options
# (Define DEBUG for debugging.)
#----------------------------------
!ifdef DEBUG
CDEBUG = -Zi -Od
LDEBUG = -debug:full -debugtype:cv
!else
CDEBUG = -Ox
LDEBUG = /RELEASE
!endif

#-------------------------------------------
# Compiler Options
#
# -W3 Turn on warnings
# -GB Optimize code for 80486/Pentium
# -MT Use Multithreaded runtime lib
#
#-------------------------------------------
CFLAGS = -W3 -GB -MT \
-I$(APIINC) -I$(CPATH)\include

#----------------------------------
# Linker Options
#
#----------------------------------
LFLAGS = /NODEFAULTLIB /SUBSYSTEM:CONSOLE \
/INCREMENTAL:NO /PDB:NONE

#------------------------------------
# Libraries
#
# libcmt Multithreaded C runtime
# kernel32 Base system lib
#
#------------------------------------
LIBS = libcmt.lib kernel32.lib

#---------------------------------
# Final target

Advertising
This manual is related to the following products: