summaryrefslogtreecommitdiff
path: root/cad/fig2sxd/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cad/fig2sxd/files/patch-Makefile')
-rw-r--r--cad/fig2sxd/files/patch-Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/cad/fig2sxd/files/patch-Makefile b/cad/fig2sxd/files/patch-Makefile
new file mode 100644
index 000000000000..987bf167da73
--- /dev/null
+++ b/cad/fig2sxd/files/patch-Makefile
@@ -0,0 +1,37 @@
+--- Makefile.orig Sun Jan 25 22:33:34 2004
++++ Makefile Tue Sep 6 13:50:01 2005
+@@ -43,28 +43,28 @@
+
+ DEPEND = .depend-
+ DEPFILES = $(SOURCES1:%.cpp=$(DEPEND)%.dep)
+-CXX = g++
++CXX ?= g++
+ CXXF = -Wall -O2 -g
+-CXXFLAGS = -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
++CXXFLAGS ?= -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
+ LIBS = -lz
+
+ $(TARGET1): $(OBJECTS1)
+- $(CXX) -o $@ $^ $(LIBS)
++ $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
+
+ $(OBJECTS1): %.o: $(SRCDIR)%.cpp $(DEPEND)%.dep
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
+
+ $(DEPFILES): $(DEPEND)%.dep: $(SRCDIR)%.cpp
+- $(CXX) $(INCLUDES) -M $< > $@
++ $(CXX) $(CXXFLAGS) $(INCLUDES) -M $< > $@
+
+ -include $(DEPFILES)
+
+ clean:
+ rm -f $(TARGETS) $(OBJECTS1) $(DEPFILES)
+
+-all: install
++all: $(TARGET1) fig2sxd.1
+
+-install: $(TARGET1) fig2sxd.1
++install:
+ install -d $(DESTDIR)/bin $(DESTDIR)/share/man/man1
+ install -m755 $(TARGET1) $(DESTDIR)/bin
+ install -m644 fig2sxd.1 $(DESTDIR)/share/man/man1