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

Page 24

Advertising
background image

2–8

Using the API

Publication 1747-6.5.3 June 1998

!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
#---------------------------------
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

Advertising
This manual is related to the following products: