Subversion Repositories DevTools

Rev

Rev 7300 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
#
# Module name   : Makefile.pl
# Module type   : Makefile system
# Compiler(s)   : ANSI C
# Environment(s): n/a
#
# Description:    makefile.pl template example
#
#.........................................................................#

require "$ARGV[1]";

# Build platform definitions ..
#
Platform( '*' );

############################################################################
#   Define the source files
#
Src        ( '*'    , "file1.c" );
Src        ( '*'    , "file1.h" );
Src        ( '*'    , "file2.xxx" );

#
#   Build and install the library
Lib        ( '*'    , "MyPackage", @OBJS  );
InstallLib ( '*'    , "MyPackage" );
InstallProg( '*'    , "file1.c" );

#.............................................................................
# Packaging definitions
#
PackageHdr  ( '*', @CHDRS ,"--Strip" );
PackageHdr  ( '*', "file2.xxx" ,"--Platform" );
PackageLib  ( '*', "MyPackage" );

#..
#
Src         ( '*'   , 'descpkg' );
PackageFile ( '*'   , 'descpkg' );

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

#..  Successful termination
1;