This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: more make problems...


--- "John E. Young" <j.e.young@larc.nasa.gov> wrote:
-8<-
> 
> Error message from
> build:-----------------------------------------------------
> 
>     build the smfcompile utility ...
> 
> gcc -E  makefile.cpp  -o makefile
> makefile.cpp:22: invalid format `#line' directive
> makefile.cpp:23: invalid format `#line' directive
> makefile.cpp:24: invalid format `#line' directive
> makefile.cpp:26: invalid format `#line' directive
> makefile.cpp:27: invalid format `#line' directive
> makefile.cpp:28: invalid preprocessing directive name
> makefile.cpp:29: invalid format `#line' directive
> makefile.cpp:30: invalid format `#line' directive
> [snip]
> 
> From makefile.cpp starting at line
> 20..:--------------------------------------
> 
> #
> # history:
> #	01-Apr-1994 KKW Initial version
> #	18-Apr-1994 DPH Created target 'all'
> #	19-Apr-1994 MES Removed smfcompile from target 'all'
> # 			Made target 'smfcompile' independent of libSMF.a
> #	19-Oct-1994 DPH changed LIBS to -lPGSTK instead of -l$(GRP)
> #	19-Oct-1994 MES Modified the .c.o target to compile without the
> # 			-O (optimize) flag.
> #	25-Oct-1994 DPH Added 'clean' target and removed target 'driver'
> #	26-Sep-1995 MES - Added $(ADD_IFLAGS) to IFLAG definition
> # 			- Added $(ADD_LFLAGS) to LFLAG definition
> # 			These allow additional directories in the include 
> # 			and lib paths by setting environment variable.
> # 			- Added $(ADD_LIBS) to LIBS definition which allows
> # 			additional libraries to be added by setting an 
> # 			environment variable.
> # 			- Removed redundancy from smfcompile target that caused
> # 			PGS_SMF_Comp.o to be called twice in the link.
> # 			- Added .c rule
> #	28-May-1996 MES Modified the .c.o and .c targets to compile without 
> # 			the -ansiposix flag, for SGI IRIX/IRIX64 version 6.2
> # 			only.  Needed for signal handling support.
> #
> # notes:
> # 	1) This file is intended for use in the Multi-Platform PGS Development
> # 	   Environment (MPPDE) .  It depends on the PGS-defined toolkit 
> # 	   directory structure, and on environmental variables defined
> # 	   by MPPDE startup files.  This is how machine independence
> # 	   is maintained.
> # 	2) Target executable files are moved to $PGSBIN
> # 	3) Target object files are moved to $(PGSOBJ)/SMF
> 
> #
> # set the name of this tool group
> #
> GRP = SMF
> 
> # force make to use the 'sh' shell
> SHELL = /bin/sh
> 
> # name of remove utility
> RM = /bin/rm
> RMFLAGS = -f 
> MFLAGS2 = -f makefile.cpp
> 
> # define C preprocessor symbols 
> DFLAGS = -D$(HDFSYS)
> 
> # path for #include directive
> 
> End of makefile.cpp excerpt------------------------------------------
> 
> 
> The lines that gcc -E is complaining about should be ignored
> as comments, and are under Solaris and IRIX, but are not
> under Cygwin.  Any ideas?
> 

Based on what I'm seeing, AFAICT, the command you need is `make -f
makefile.cpp' not `gcc -E makefile.cpp'.

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]