Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

#
# Copyright (C) 1999-2002 ERG Limited, All rights reserved
#
# Module name:  Makelib.pl
# Module type:  Makefile system
#
# Description:  rpcgen
#
# Version   Who      Date        Description
# 1.0       APY      24/08/99    Created
#
# $Source: /cvsroot/device/NET/SRC/RPC40/RPCGEN/MAKEFILE.PL,v $
# $Revision: 1.3 $ $Date: 2002/04/30 07:15:20 $ $State: Exp $
# $Author: adamy $ $Locker:  $
#...........................................................................

# exec build system
#
die "Usage: Makefile.pl rootdir Makelib.pl\n"
    unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

# subdirectories to recurse (if any) and target platform(s),
#   the following section(s) is called for each target ..
#   eg SubDir('SUBDIR1', 'SUBDIR2');
#..

# build platform definitions ..
#   eg Platform('P386', 'M68K');
#..
Platform( @BuildTools );

#.............................................................................
# Platforms definitions
#

# Build flags and paths:
#   eg  AddCFlags( '*', '-DDOSOMETIME' );
#       AddIncDir( '*', '../INC' );
#       AddSrcDir( '*', 'SUBDIR' );
#..
AddCFlags( '*', '-DEMBEDDED' );

AddIncDir( '*', '.' );

# Any new source types
#   eg  AddSourceType( '.xxx', '.asm' );
#..
#(none)

# Any source/headers etc
#   eg  Src( '*', 'Makefile.pl' [, ...] )
#..
Src( '*', 'Makefile.pl' );
Src( '*', 'rpc_type.h' );
Src( '*', 'rpc_pars.h' );
Src( '*', 'rpc_scan.h' );
Src( '*', 'rpc_util.h' );
Src( '*', 'rpc_clnt.c' );
Src( '*', 'rpc_cout.c' );
Src( '*', 'rpc_hout.c' );
Src( '*', 'rpc_main.c' );
Src( '*', 'rpc_pars.c' );
Src( '*', 'rpc_samp.c' );
Src( '*', 'rpc_scan.c' );
Src( '*', 'rpc_svco.c' );
Src( '*', 'rpc_tblo.c' );
Src( '*', 'rpc_util.c' );
Src( '*', 'rindex.c' );

# Files to be generated:
#   eg  Generate( 'P386', 'aa.cc', 'aa.h' );
#..
#(none)

# Addition rules:
#   eg  Rule( 'P386', "aa.h:\n" . "\tbuild aa.h" );
#..
#(none)

# Headers to be installed
#   eg  InstallHdr( '*', 'public.h' );
#..
#(none)

# Libraries to be made
#   eg  Lib( 'P386,M68K', 'lib', 'src1', 'src2', '-args' );
#       Lib( '*', 'lib', @OBJS );
#..
#(none)

# Libraries to be installed into the 'export' lib directory:
#   eg  InstallLib( 'P386', 'lib' );
#..
#(none)

# Applications to be built
#   eg  Prog( ... )
#..
Prog( '*', 'rpcgen', @OBJS );

# Applications to be installed
#   eg  InstallProg( ... )
#..
#(none)

# Packaging installation
#..
#.. PackageHdr( 'P386', 'public.h', $Pinc, 'A' );
#.. PackageLib( 'P386', 'plib1', $Plib, 'A' );
#.. PackageProg( 'P386', 'prog1', $Pbin, 'A' );

#.............................................................................
# Finally generate the makefile
MakefileGenerate();