1# makefile 2 3CXXFLAGS = `wx-config --cxxflags` 4LDFLAGS = `wx-config --libs` 5 6PROGRAM = tex2rtf 7 8OBJECTS = tex2rtf.o tex2any.o texutils.o rtfutils.o xlputils.o htmlutil.o readshg.o table.o 9 10# implementation 11 12.SUFFIXES: .o .cpp 13 14.cpp.o : 15 $(CXX) -c $(CXXFLAGS) -o $@ $< 16 17all: $(PROGRAM) 18 19$(PROGRAM): $(OBJECTS) 20 $(CXX) -o $(PROGRAM) $(OBJECTS) $(LDFLAGS) 21 22clean: 23 rm -f *.o $(PROGRAM) 24 25