awt will pay $20.00 to the first person to successfully answer the question:

I need help getting this source to compile on OSX:
http://sourceforge.net/project/showfiles.php?group_id=159649

I can't seem to get the linking options correct.

Below is Makefile slightly modified from the original that compiles on Gentoo, without the portaudio library. How can I get this to compile on OS X?

This link may help you:
http://marc2.theaimsgroup.com/?l=osx-unix-porting&m=106623148420138&w=2

speak_SOURCES = speak.cpp compiledict.cpp dictionary.cpp intonation.cpp \
readclause.cpp setlengths.cpp \
synthdata.cpp synthesize.cpp translate.cpp tr_english.cpp \
tr_languages.cpp voices.cpp wavegen.cpp

libespeak_SOURCES = speak_lib.cpp compiledict.cpp dictionary.cpp intonation.cpp \
readclause.cpp setlengths.cpp \
synthdata.cpp synthesize.cpp translate.cpp tr_english.cpp \
tr_languages.cpp voices.cpp wavegen.cpp

SRCS1=$(speak_SOURCES)
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
LIBS1=-lstdc++

SRCS2=$(libespeak_SOURCES)
OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
LIBS2=-lstdc++

all: speak libespeak.so
mv libespeak.so libespeak.so.1.1.14

.cpp.o:
$(CXX) $(CXXFLAGS) -O2 -Wall -pedantic -I. -c -fno-exceptions $<

speak: $(OBJS1)
$(CXX) -o $@ $(OBJS1) $(LIBS1)

x_%.o: %.cpp
$(CXX) $(CXXFLAGS) -O2 -Wall -fpic -fvisibility=hidden -pedantic \
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o

libespeak.so: $(OBJS2)
$(CXX) -shared -Wl,-soname,libespeak.so.1 -o $@ $(OBJS2) $(LIBS2)

clean:
rm -f *.o *~

distclean: clean
rm -f speak
rm -f libespeak.so*

funded

Answer awt's question

People succeed in answering awt's questions 14% of the time (1 success in 7 attempts).

Counter Offer:

$24 | $28 | $32 | other: