home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl502b.zip
/
ext
/
DPI
/
Sample
/
Make.os21
< prev
next >
Wrap
Text File
|
1994-02-09
|
3KB
|
77 lines
#---------------------------------------------------------------------
#
# Makefile for dpisample - including the DPI 2.0 API
# Tailored for OS/2 2.1 with C-Set++ Compiler
#
# $Id$
#
# $Log$
#
#---------------------------------------------------------------------
CC = icc # name of compiler
O = obj # file extension for object files
E = .exe # file extension for executeable files
C_FLAG = -c+ # compile only flag
O_FLAG = -Fe # output filename flag (for executable)
INCLUDES = -I. $(SYS_INCLUDES)
CFLAGS = $(INCLUDES) $(SYS_CFLAGS) $D
# C-Set++ Compiler flags and their meaning (only those used here)
# -Sa ANSI C Conformance
# -Q- Display logo (default)
# -Q+ Do not display logo
# -Kb- Suppress basic diagnostic messages (default)
# -Kb+ Produce basic diagnostic messages
# -J- Set unspecified char variables to signed char
# -J+ Set unspecified char variables to unsigned char (default)
# -Sr- Use new Style Rules for type conversion (default)
# -Sr+ Use old Style Rules for type conversion (not ANSI conformant)
# -T- Do not generate debugger information (default)
# -T+ Generate debugger information
# -W1 Produce error messages, no warnings
SYS_CFLAGS = -Sa -W1 -Q+ -Kb+ -J- -DCONST
SYS_LFLAGS = -Sa -Q+ -B/stack:16000/CO # no linker logo, 16K stack
# TCP/IP 2.0 for OS/2 needs these socket libraries
# We assume they are included in the LIB search order
# Depending on your code, you may not need them.
SOCK_LIBS = so32dll.lib tcp32dll.lib
# TCP/IP 2.0 for OS/2 needs following extra compile flag(s) for sockets
# -DOS2 - will cause BSD_SELECT methods and OS/2 soclose(..)
# and psoc_errno() and all other OS/2 specific socket
# related differences from standard BSD 4.3 sockets
# -DOS2_SELECT - will cause OS2_SELECT methods instead of BSD_SELCT
SOCK_FLAGS = -DOS2_SELECT -DOS2
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