beautypg.com

Sample windows nt make file for borland compilers – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 30

background image

Publication 1747-UM002A-US-P - June 2000

2-8 Using the API

#---------------------------------
sample.exe : sample.obj $(APILIB)
$(LINK) @<<
$(LDEBUG) $(LFLAGS) $(LIBS) $**

<<

@echo Finished

clean:
del *.exe
del *.obj
del *.map

rebuild:
$(MAKE) -f samplem.mak clean
$(MAKE) -f samplem.mak

#--------------------------
# Intermediate target rules
#--------------------------
.c.obj:
$(CC) @<<
/c $(CDEBUG) $(CFLAGS) $*.c

<<

#---------------------------------
# Intermediate target dependancies
#---------------------------------

sample.obj: sample.c $(APIINC)\ocapi.h
samplem.mak

Sample Windows NT MAKE file for Borland compilers

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

#************************************************************************
#
# Title: Makefile for Open Controller API Sample
#
# Abstract:
# This file is used by the Borland MAKE utility to build the
# sample application.
#
# Environment:
# 1747-OCE Open Controller
# Microsoft Windows NT 4.0
# Borland C++ Compiler
#
# (c)Copyright Allen-Bradley
#
#************************************************************************
#----------------------------------------------
# Paths to Tools
#
# Note: Modify the following paths to

This manual is related to the following products: