Rockwell-automation 1747-PCINT API Software for 1746 I/O Manual de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
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
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 154 155

Comentarios a estos manuales

Sin comentarios