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]

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
LISGGT_A	= ../lib/libSGGT.a

# Standard targets.

all: $(LISGGT_SO)

 $(LISGGT_SO): $(OBJECTS)
	@echo ">>>"
	@echo ">>> Making library $@
	@echo ">>>"
	$(RM) $@
	$(LD) $(SHARED_LDFLAGS) -o $@ $(OBJECTS)


.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.

--
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]