our makefile used to work, but...
our makefile used to work, but...
- Subject: our makefile used to work, but...
- From: Paul Archibald <email@hidden>
- Date: Tue, 9 Aug 2005 22:39:18 -0700
Comrades,
Of course, the makefile I used to use has broken. I last used it
under Panther. It builds a dynamic library that links with the JavaVM
framework.
To be honest, I did not write this makefile, nor the code it builds.
I am the new guy on the project, and need to get it working with
Tiger for our next version.
Here is (something like) the makefile, which worked with Panther:
# makefile >>>
TARGET=../libJEngine.jnilib
OBJECTS=\
engine/exception.o\
engine/mathx.o\
engine/auto.o\
engine/stiff.o\
engine/lumatrix.o\
engine/imc.o
$(TARGET): $(OBJECTS)
libtool -dynamic -M -single_module -o $@ $^ -lstdc++ -lc -lgcc >
map
strip -x $@
%.o: %.cpp
cc -c -O2 -o $@ $^ -I /System/Library/Frameworks/
JavaVM.framework/Headers
clean:
rm -f $(TARGET) *.o engine/*.o map
# << end makefile
When I try make, I get (something like) this:
$ make
libtool -dynamic -M -single_module -o ../libJEngine.jnilib engine/
exception.o engine/mathx.o engine/auto.o engine/stiff.o engine/
lumatrix.o engine/imc.o -lstdc++ -lc -lgcc > map
libtool: can't locate file for: -lstdc++
libtool: file: -lstdc++ is not an object file (not allowed in a library)
libtool: can't locate file for: -lgcc
libtool: file: -lgcc is not an object file (not allowed in a library)
make: *** [../libJEngine.jnilib] Error 1
$
Does anyone know what I can do here? I am going to need to add more
files to this project, and be able to maintain it into the future,
but I am no expert on makefiles. I would like to do it all in xcode
if possible, but can't figure out just what the original makefile does.
Does this query belong on the darwin-dev list instead?
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden