home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl502b.zip
/
ext
/
DPI
/
Sample
/
Make.aix32
< prev
next >
Wrap
Text File
|
1994-02-09
|
2KB
|
56 lines
#---------------------------------------------------------------------
#
# Makefile for dpisample - including the DPI 2.0 API
# Tailored for AIX 3.2 with XL C Compiler
#
# $Id$
#
# $Log$
#
#---------------------------------------------------------------------
RANLIB = ranlib # BSD 4.3 and newer AIX systems have it
CC = cc # name of compiler
O = o # file extension for object files
E = # file extension for executeable files
C_FLAG = -c # compile only flag
O_FLAG = -o # output filename flag (for executable)
SYS_CFLAGS = -g -qlanglvl=ansi # use ANSI C
SYS_CFLAGS = -D_ALL_SOURCE -DBSD_INCLUDES -D_BSD -qlanglvl=ansi
# Specify if you need to include any special socket libraries
SOCK_LIBS =
# Specify if you need to compile with any special flags for Sockets
SOCK_FLAGS =
INCLUDES = -I. $(SYS_INCLUDES)
CFLAGS = $(INCLUDES) $(SYS_CFLAGS) $D
DPISAMPLE_OBJS = dpi_sample.$O
DPIAPI_OBJS = snmp_mDPI.$O snmp_lDPI.$O snmp_qDPI.$O
.c.obj:
$(CC) $(CFLAGS) $(C_FLAG) $*.c
all: dpisample$E
dpisample$(E): $(DPISAMPLE_OBJS) $(DPIAPI_OBJS)
$(CC) $(SYS_LFLAGS) $(O_FLAG) $@ $(DPISAMPLE_OBJS) \
$(DPIAPI_OBJS) $(SOCK_LIBS)
dpi_sample.$O: dpi_sample.c snmp_dpi.h
$(CC) $(CFLAGS) $(C_FLAG) $*.c
snmp_lDPI.$O: snmp_lDPI.c snmp_dpi.h snmp_lDPI.h
$(CC) -DDPI_DEBUG $(CFLAGS) $(C_FLAG) $(SOCK_FLAGS) $*.c
snmp_mDPI.$O: snmp_mDPI.c snmp_dpi.h snmp_lDPI.h dpi_version.h
$(CC) -DDPI_DEBUG $(CFLAGS) $(C_FLAG) $*.c
snmp_qDPI.$O: snmp_qDPI.c snmp_dpi.h snmp_lDPI.h
$(CC) -DDPI_DEBUG $(CFLAGS) $(C_FLAG) $*.c
# end of Make.dpi20api.aix