Sponsored Content
Full Discussion: Make and gmake issues
Operating Systems Solaris Make and gmake issues Post 302801591 by Revathi R on Thursday 2nd of May 2013 09:50:48 AM
Old 05-02-2013
Make and gmake issues

Hello
I am working on a CPP code written for SUN CC 5.5
and make
we used make to compile the code then it compilation went smooth
now i am using gmake:
I have a make file like this
Code:
WSROOT=..
include $(WSROOT)/etc/wsmkinclude.common
all:
        @for subdir in */Makefile; \
          do \
            echo "+ Making $@ in `dirname $$subdir` ..."; \
            (cd `dirname $$subdir`; make $(MAKEFLAGS) $@); \
          done

.DEFAULT:
        @for subMake in */Makefile; \
          do \
            if [ -f $$subMake ]; then \
            echo "+ Making $@ in `pwd`/`dirname $$subMake` ..."; \
            (cd `dirname $$subMake`; make $(MAKEFLAGS) $@); \
            fi; \
          done

and $(WSROOT)/etc/wsmkinclude.common is

Code:
all : check_options
sqlpath_chk:sh= \
        if [ ${SQLPATH:-NOTDEFINED} = NOTDEFINED ] ;\
         then \
             echo NOTDEFINED ;\
         else \
             echo ${SQLPATH} ;\
        fi
ora_version:sh= \
        if [ ${ORACLE_VERS:-NOTDEFINED} = NOTDEFINED ] ;\
         then \
             echo NOTDEFINED ;\
         else \
             echo ${ORACLE_VERS} ;\
        fi
product_name:sh= \
        if [ ${WM_PRODUCT:-NOTDEFINED} = NOTDEFINED ] ;\
         then \
             echo NOTDEFINED ;\
         else \
             echo ${WM_PRODUCT} ;\
        fi
check_options :
        @if [ ${sqlpath_chk} = NOTDEFINED ] ;\
          then \
            echo 'The environment variable SQLPATH is not defined' ;\
            echo ' ' ;\
            echo 'This should have $$FLEXPM_HOME/config at a minimum' ;\
            echo ' ' ;\
            exit 1 ; \
        fi ;\
        if [ ${product_name} = NOTDEFINED ] ;\
          then \
            echo 'The environment variable WM_PRODUCT is not defined' ;\
            exit 1 ; \
        fi ;\
        case ${ora_version} in \

some extra content also there


when i did
Code:
$gmake
/bin/sh: syntax error at line 15: `NOTDEFINED' unexpected
gmake: *** [check_options] Error 2


Last edited by zaxxon; 05-02-2013 at 10:59 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

gmake

Can somebody tell me about "gmake "utility and its apparent advantage with "Imake" and "Make".??? can somebody send me the URLs where I can get more material on above topics? (1 Reply)
Discussion started by: Abhishek
1 Replies

2. AIX

gmake For AIX 5.3

hello everybody i will be very thankful if someone tells me where i can find the gmake for AIX 5.3 (2 Replies)
Discussion started by: eternalflame
2 Replies

3. Programming

what is the distinguish between gmake and make?

I am working on solaris 9. and use gmake to compile and linke c/c++ program. anybody can tell me the distinguish between gmake and make? :confused: (10 Replies)
Discussion started by: robin.zhu
10 Replies

4. HP-UX

Perl, gmake and make software

Hi, I'm searching website where there is software for HP-UX operating system in free download because I must install Perl, Make and Gmake on HP-UX server. Have you goods URL for me ? Thank you very much! bye Staaan (2 Replies)
Discussion started by: staaan
2 Replies

5. UNIX for Advanced & Expert Users

build - make -gmake: execvp: mcu: Permission denied

Hi All, sorry it was application related.. i am deleting it Thanks & Regards Shihab (0 Replies)
Discussion started by: shihabvk
0 Replies

6. Programming

Two issues in make file, g++, gfortran

Question 1: I have a c++ project that I am trying to re-organize. I am trying to subdivide the src directory to move some src files that seldom are changed to a more out of the way location. The project is a c++ application with a fortran function called from the c. The reorganization went... (9 Replies)
Discussion started by: LMHmedchem
9 Replies

7. Programming

GMAKE error returns - What does that mean ?

I am using xmake which I guess calls gmake which ... whatever. I get an error in my compiling and want to know what the error number means. For example, the message might be "Error 139". Rather then post the exact code fragment and exact output, I want to find the a list of error codes and... (1 Reply)
Discussion started by: intcwrtr
1 Replies

8. UNIX for Dummies Questions & Answers

gmake on Mac

I am using my teminal on Mac to run some files with gmake, (I used unix before,but now I am trying to run it frm my mac) and I get the error message: -bash: gmake: command not found Any idea what the problem might be? Thanks! (10 Replies)
Discussion started by: cosmologist
10 Replies

9. Programming

Make and gmake issues

Hello I am working on a CPP code written for SUN CC 5.5 and make we used make to compile the code then it compilation went smooth now i am using gmake: I have a make file like this WSROOT=.. include $(WSROOT)/etc/wsmkinclude.common all: @for subdir in */Makefile; \ do \... (1 Reply)
Discussion started by: Revathi R
1 Replies

10. UNIX for Dummies Questions & Answers

Gmake

hi with regard that i am new with linux , i don't have any information about GNU make? is it a part of linux or it must be installed in linux separately? thanks in advance for you attention best regard fereshte (1 Reply)
Discussion started by: komijani
1 Replies
Module::Starter::BuilderSet(3pm)			User Contributed Perl Documentation			  Module::Starter::BuilderSet(3pm)

NAME
Module::Starter::BuilderSet - determine builder metadata VERSION
Version 1.58 SYNOPSIS
use Module::Starter::BuilderSet; my $builder_set = Module::Starter::BuilderSet->new; my @supported_builders = $builder_set->supported_builders(); my $default_builder = $builder_set->default_builder(); my $output_file = $builder_set->file_for_builder($default_builder); my $create_method = $builder_set->method_for_builder($default_builder); Module::Starter::Simple->$create_method($default_builder); # eeew. my @build_commands = $builder_set->instructions_for_builder($default_builder); my @builder_dependencies = $builder_set->deps_for_builder($default_builder); my @compatible_builders = $builder_set->check_compatibility(@builder_list); my $ms_simple = Module::Starter::Simple->new(); my $build_method = $builder_set->manifest_method($builder); $ms_simple->$build_method(); DESCRIPTION
Module::Starter::BuilderSet is a collection of utility methods used to provide metadata about builders supported by Module::Starter. CLASS METHODS
"new()" This method initializes and returns an object representing the set of Builders supported by Module::Starter "supported_builders()" This method returns a list of builders supported by Module::Starter "file_for_builder($builder)" This method returns the name of the file generated by Module::Starter that will be used to build the generated module "method_for_builder($builder)" This method returns the name of the method in the "Module::Starter::Simple" package that is called to create the file returned by "file_for_builder($builder)" "instructions_for_builder($builder)" This method returns a list of commands that, when run from the command line (or with "system()"), will cause the generated module to be built, tested and installed. "deps_for_builder($builder)" This method returns a list of dependencies in the following format: "( { command => "make", aliases => [ 'make', 'gmake' ], }, { command => "another_command", aliases => [ 'alias0', 'alias1', '...' ], }, )" "manifest_method($builder)" This method returns the command to run to create the manifest according to the builder asked. "check_compatibility(@builders)" This method accepts a list of builders and filters out the ones that are unsupported or mutually exclusive, returning the builders that passed the filter. If none pass the filter, the default builder is returned. "default_builder()" This method returns the module name of the default builder. BUGS
Please report any bugs or feature requests to "bug-module-starter at rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. AUTHOR
C.J. Adams-Collier, "<cjac@colliertech.org>" Copyright &; License Copyright 2007 C.J. Adams-Collier, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Please note that these modules are not products of or supported by the employers of the various contributors to the code. perl v5.12.4 2011-07-02 Module::Starter::BuilderSet(3pm)
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy