TARGET = word.so OFILES = sipwordcmodule.o sipwordWord.o HFILES = sipAPIword.h CC = gcc CXX = g++ LINK = g++ CPPFLAGS = -I. -I/usr/include/python2.4 CFLAGS = -O2 -m64 -mtune=generic -fPIC -fPIC -I/usr/include/freetype2 -O2 -mtune=generic -Wall -W CXXFLAGS = -O2 -m64 -mtune=generic -fPIC -fPIC -I/usr/include/freetype2 -O2 -mtune=generic -Wall -W LFLAGS = -shared -Wl,--version-script=word.exp LIBS = -L./ -lword .SUFFIXES: .c .o .cpp .cc .cxx .C .cpp.o: $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< .C.o: $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< $(TARGET): $(OFILES) @echo '{ global: initword; local: *; };' > word.exp $(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS) $(OFILES): $(HFILES) install: $(TARGET) @test -d $(DESTDIR)/usr/lib/python2.4/site-packages || mkdir -p $(DESTDIR)/usr/lib/python2.4/site-packages cp -f $(TARGET) $(DESTDIR)/usr/lib/python2.4/site-packages/$(TARGET) strip $(DESTDIR)/usr/lib/python2.4/site-packages/$(TARGET) clean: -rm -f $(TARGET) -rm -f sipwordcmodule.o -rm -f sipwordWord.o -rm -f word.exp