X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6f762a646e1288dcc4be6fc9ccc22d9a88c2a0f..b7e542bee896f74d7a7aef769335b2e90384e8ca:/utils/tex2rtf/src/makefile.unx

diff --git a/utils/tex2rtf/src/makefile.unx b/utils/tex2rtf/src/makefile.unx
index c4cac47118..a16e29eaa7 100644
--- a/utils/tex2rtf/src/makefile.unx
+++ b/utils/tex2rtf/src/makefile.unx
@@ -1,6 +1,7 @@
 # makefile
 
-CC = g++
+CXXFLAGS = `wx-config --cxxflags`
+LDFLAGS = `wx-config --libs`
 
 PROGRAM = tex2rtf
 
@@ -11,12 +12,12 @@ OBJECTS = tex2rtf.o tex2any.o texutils.o rtfutils.o xlputils.o htmlutil.o readsh
 .SUFFIXES:	.o .cpp
 
 .cpp.o :
-	$(CXX) -c `wx-config --cxxflags` -o $@ $<
+	$(CXX) -c $(CXXFLAGS)  -o $@ $<
 
 all:    $(PROGRAM)
 
 $(PROGRAM):	$(OBJECTS)
-	$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+	$(CXX) -o $(PROGRAM) $(OBJECTS) $(LDFLAGS) 
 
 clean:
 	rm -f *.o $(PROGRAM)