# Set P4API in your environment to the path of your P4API directory:
# export P4API=<path-to-p4api-dir>
#
# For Linux (32-bit):
# export OS=LINUX
# export OSVER=26
# export OSPLAT=X86
#
# For Linux (64-bit):
# export OS=LINUX
# export OSVER=26
# export OSPLAT=X86_64
#
# For Solaris 10 (32-bit):
# export OS=SOLARIS
# export OSVER=10
# export OSPLAT=X86
#
# For Solaris 10 (64-bit):
# export OS=SOLARIS
# export OSVER=10
# export OSPLAT=X86_64
#
C++FLAGS = -DBUILD_JTAIL ;
DEFINES += OS_$(OS) OS_$(OS)$(OSVER) OS_$(OS)$(OSPLAT)
OS_$(OS)$(OSVER)$(OSPLAT) ;
LINK = c++ ;
OSINFO = $(OS)$(OSVER:E)$(OSPLAT:E) ;
HDRS = $(P4API)$(SLASH)include$(SLASH)p4 ;
P4LIBS = $(P4API)$(SLASH)lib ;
switch $(OSINFO)
{
case LINUX26X86 :
C++FLAGS += -m32 ;
LINKFLAGS += -m32 -ldl ;
case LINUX26X86_64 :
C++FLAGS += -m64 ;
LINKFLAGS += -m64 -ldl ;
case SOLARIS10X86 :
C++ = gcc ;
LINK = gcc ;
LINKLIBS = -lsupc++ -lm -lsocket -lnsl ;
case SOLARIS10X86_64 :
C++ = gcc ;
C++FLAGS += -m64 ;
LINK = gcc ;
LINKFLAGS += -m64 ;
LINKLIBS = -lsupc++ -lm -lsocket -lnsl ;
}
rule Fconcat { return $(<:J) ; }
Main p4jtail : p4jtail.cc ;
ObjectDefines p4jtail : [ Fconcat ID_OS= [ FQuote $(OSINFO) ] ] ;
LinkLibraries p4jtail : $(P4LIBS)$(SLASH)libclient.a
$(P4LIBS)$(SLASH)librpc.a $(P4LIBS)$(SLASH)libsupp.a ;
# |
Change |
User |
Description |
Committed |
|
#1
|
7426 |
michael |
Initial p4jtail code and README w/disclaimer.
Builds with Jam. |
|
|