Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual

Page 23

Advertising
background image

Using the API

2–7

Publication 1747-6.5.3 June 1998

Sample Windows NT MAKE file for Microsoft compilers

The following sample file shows how to use a Microsoft MAKE file. The bold
headings indicate the statements you need to modify for your environment.

#************************************************************************
# Title: Makefile for Open Controller NT API Sample
#
# Abstract:
# This file is used by the Microsoft NMake utility to build the
# sample application.
#
# Environment:
# 1747-OCE Open Controller
# Microsoft Windows NT 4.0
# Microsoft Visual C++
#
# (c)Copyright Allen-Bradley
#
#************************************************************************

#----------------------------------------------
# Note: The environment variable LIB
# must be set to the path to the
# Microsoft C library files.
# For example:
#
# set LIB=D:\MSDEV\LIB
#
#----------------------------------------------
# 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

Advertising
This manual is related to the following products: