Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: From: "Lincoln, W. Terry" To: "'c9502007 AT zeus DOT hud DOT ac DOT uk'" , cygwin AT sourceware DOT cygnus DOT com Subject: RE: Make Problems Date: Thu, 26 Aug 1999 14:04:20 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01BEEFED.6E52BCDA" ------_=_NextPart_000_01BEEFED.6E52BCDA Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BEEFED.6E52BCDA" ------_=_NextPart_001_01BEEFED.6E52BCDA Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: c9502007 AT zeus DOT hud DOT ac DOT uk [mailto:c9502007 AT zeus DOT hud DOT ac DOT uk] > Sent: Thursday, August 26, 1999 3:59 AM > To: cygwin AT sourceware DOT cygnus DOT 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 AT engineer DOT com \ |U| http://terrylincoln.isonfire.com \ / |S| \ http://www.AngelFire.com/ny/TerryLincoln \ | | \ ICQ# 39362285 \ | | =========================================== ~~~~~ Opinions expressed do not represent the management of UTC. ------_=_NextPart_001_01BEEFED.6E52BCDA Content-Type: text/html; charset="iso-8859-1" RE: Make Problems

> -----Original Message-----
> From: c9502007 AT zeus DOT hud DOT ac DOT uk [mailto:c9502007 AT zeus DOT hud DOT ac DOT uk]
> Sent: Thursday, August 26, 1999 3:59 AM
> To: cygwin AT sourceware DOT cygnus DOT 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 AT engineer DOT com      \     |U|
http://terrylincoln.isonfire.com        \  / |S| \
http://www.AngelFire.com/ny/TerryLincoln \   | |  \
ICQ# 39362285                             \  | | 
=========================================== ~~~~~
Opinions expressed do not represent the management of UTC.

  ------_=_NextPart_001_01BEEFED.6E52BCDA-- ------_=_NextPart_000_01BEEFED.6E52BCDA Content-Type: application/octet-stream; name="Warren Terry Lincoln (E-mail).vcf" Content-Disposition: attachment; filename="Warren Terry Lincoln (E-mail).vcf" BEGIN:VCARD VERSION:2.1 N:Lincoln;Warren;;Mr.; FN:Warren Terry Lincoln (E-mail) ORG:UTC;Engineering TITLE:Senior Engineer TEL;WORK;VOICE:(716) 924-9500 TEL;HOME;VOICE:(716) 377-3959 TEL;CELL;VOICE:(716) 261-3959 TEL;CAR;VOICE: TEL;WORK;FAX:(716) 924-1434 ADR;WORK:;Victor;100 Rawson Road;Victor;NY;14564-0000;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Victor=0D=0A100 Rawson Road=0D=0AVictor, NY 14564-0000=0D=0AUnited States of= America ADR;HOME:;;100 Courtshire Lane;Penfield;NY;10526-2678;United States of America LABEL;HOME;ENCODING=QUOTED-PRINTABLE:100 Courtshire Lane=0D=0APenfield, NY 10526-2678=0D=0AUnited States of Ameri= ca EMAIL;PREF;MS:ULTIMATE/UTCPO/LincolnT REV:19990121T133603Z END:VCARD ------_=_NextPart_000_01BEEFED.6E52BCDA Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------_=_NextPart_000_01BEEFED.6E52BCDA--