Make Problems

Lincoln, W. Terry terryl@ultimatetechnology.com
Thu Aug 26 11:09:00 GMT 1999


Title: RE: Make Problems






> -----Original Message-----
> From: c9502007@zeus.hud.ac.uk [ mailto:c9502007@zeus.hud.ac.uk ]
> Sent: Thursday, August 26, 1999 3:59 AM
> To: cygwin@sourceware.cygnus.com
> Subject: Make Problems
> 
> 
> ----------
> X-Sun-Data-Type: text
> X-Sun-Data-Description: text
> X-Sun-Data-Name: text
> X-Sun-Charset: us-ascii
> X-Sun-Content-Lines: 23
> 
> Hi,
>    I am having problems with make. I have set up some 
> makefiles that work under un*x but not under 
> cygwin.
> I have attached 3 files
> make.g++        contains compiler specific stuff (I have one 
> for the SUN CC compiler called make.CC)
> makefile        contains the main top level make file which 
> includes make.g++ via a env var COMPILER
> makefile_src    contains the makefile within the src 
> directory also include make.g++
> my directory strucutre is as follows
> toplevel_dir/   this conatins makefile and make.g++
> toplevel_dir/src this conatins makefile_src and sources files 
> for making a static library.
> toplevel_dir/inc this conatins all my includes
> toplevel_dir/src_test this contains my testing code
>  
> when I execute the following command
> //MAYA/.../sandro $ make --unix
> cd src;make all
> make[1]: *** No rule to make target `VRMLVisitor.o', needed 
> by `../lib/libSGGT.so'.  Stop.
> make: *** [all] Error 2
>  
> Anybody have any ideas as to what is going wrong????
>  
> Thanks
> Satpal Chander
> ----------
> X-Sun-Data-Type: default-app
> X-Sun-Data-Description: default
> X-Sun-Data-Name: make.g++
> X-Sun-Charset: us-ascii
> X-Sun-Content-Lines: 12
> 
> # make.CC compiler dependend
> 
> CPPCOMPILER   = /usr/local/gcc-2.95/H-i586-cygwin32/bin/g++
> 
> SHARED_LDFLAGS        = -G
> 
> MAKE          = make
> PIC           = -fpic
> RM            = rm -f
> LD            = $(CPPCOMPILER)
> 
> 
> ----------
> X-Sun-Data-Type: Makefile
> X-Sun-Data-Description: Makefile
> X-Sun-Data-Name: makefile
> X-Sun-Charset: us-ascii
> X-Sun-Content-Lines: 12
> 
> include make.$(COMPILER)
> 
> all: FORCE
>       cd src;${MAKE} all
>       cd src_test;${MAKE} all
> 
> clean: FORCE
>       cd src;${MAKE} clean
>       cd src_test;${MAKE} clean
> 
> #force descent into subdir
> FORCE:
> ----------
> X-Sun-Data-Type: Makefile
> X-Sun-Data-Description: Makefile
> X-Sun-Data-Name: makefile_src
> X-Sun-Charset: us-ascii
> X-Sun-Content-Lines: 95
> 
> #########################################################
> ###
> ### FILE NAME : makefile
> ###
> ### CONTENTS  :  Building library ....
> ###
> #########################################################
> #@echo "find ..make"
> 
> include ../make.$(COMPILER)
> 
> CCC   = $(CPPCOMPILER)
> 
> SOURCES.cc    =  \
>                 VRMLVisitor.cc \
>                 SGGTVisitor.cc \
>                 TransformNode.cc \
>                 RootNode.cc \
>                 GroupNode.cc \
>                 LODNode.cc \
>                 MaterialNode.cc \
>                 DirectionalLightNode.cc \
>                 PointLightNode.cc \
>                 SpotLightNode.cc \
>                 GeometryBoxNode.cc \
>                 GeometryConeNode.cc \
>                 GeometryCylinderNode.cc \
>                 GeometrySphereNode.cc \
>                 GeometryFileNode.cc \
>                 Vec3.cc \
>                 RotationVec.cc
> 
> 
> SOURCES               = $(SOURCES.cc)
> 
> OBJECTS.cc    = $(SOURCES.cc:.cc=.o)
> 
> OBJECTS               = $(OBJECTS.cc)
> 
> CFLAGS                = -DDEBUG=1 -I../inc 
> -I/usr/local/gcc2.95/include
> CCFLAGS       = $(CFLAGS)
> 
> LISGGT_SO     = ../lib/libSGGT.so
 - - - - - - - >~~~~~~~~~~~~~~~~~ (.so extension is for unix shared library)
> LISGGT_A      = ../lib/libSGGT.a
> 
> # Standard targets.
> 
> all: $(LISGGT_SO)
> 
>  $(LISGGT_SO): $(OBJECTS)
>       @echo ">>>"
>       @echo ">>> Making library $@
>       @echo ">>>"
>       $(RM) $@
>       $(LD) $(SHARED_LDFLAGS) -o $@ $(OBJECTS)
 ------------^^^^^^^^^^^^^^^^^ (Cygwin ld does not support that type of shared library
                               (you need to create a DLL instead
> 
> 
> .cc.o: 
>       @echo ">>>"
>       @echo ">>> Compiling $<"
>       @echo ">>>"
>       $(COMPILE.cc) $(PIC) $<
> 
> 
> ### does not clean libraries!!! (c.f. clean_all, clean_libs)
> clean: clean_rest
>       $(RM) $(OBJECTS)
> 
> clean_rest:
>       $(RM) *.bak *.BAK *.delta core *.tab.* *no_pure *~
> 
> 
> print:
>       @echo ""
>       @echo "====== 
> fil/fil_gen/conversion/src/makefile.dynamic ============"
>       @echo ""
>       @echo "LISGGT_SO   = $(LISGGT_SO) "
>       @echo 
> "---------------------------------------------------------------"
>       @echo "SOURCES                = $(SOURCES) "
>       @echo 
> "---------------------------------------------------------------"
>       @echo "OBJECTS                = $(OBJECTS) "
>       @echo 
> "---------------------------------------------------------------"
> 
> 
> 
> 
> ########################################################
> #
> # Depend
> #
> ########################################################
> 
> depend:
>       makedepend $(CPPFLAGS) -w30 -I$(COMP_INC) $(SOURCES)
> # DO NOT DELETE THIS LINE -- make depend depends on it.



Please scan the mailing list and read the FAQ about Cygwin shared libraries.  And scan the mailing list about DLL files.

May GOD smiles upon your porting endeavor,


W. Terry Lincoln                   \      \   _   /
Senior Engineer                     \      \ |J| /
Ultimate Technology Corporation      \      _|E|_
a Tridex Company (NASDAQ:trdx)        \    |_ S _|
mailto:WTerryLincoln@engineer.com       \     |U|
http://terrylincoln.isonfire.com         \  / |S| \
http://www.AngelFire.com/ny/TerryLincoln \   | |  \
ICQ# 39362285                             \  | |  
=========================================== ~~~~~
Opinions expressed do not represent the management of UTC. 


 


Warren Terry Lincoln (E-mail).vcf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list