freebsd-ports/cad/klayout/files/patch-config-Makefile.conf
2011-02-10 14:02:12 +00:00

52 lines
1.1 KiB
Text

--- /dev/null 2011-02-10 22:38:57.000000000 +0900
+++ config/Makefile.conf.freebsd-32-gcc-release 2011-02-10 22:39:43.000000000 +0900
@@ -0,0 +1,49 @@
+
+# Configuration file for
+# gcc, FreeBSD
+# release build
+
+# Compiler options
+
+AR=ar -r
+
+# Compiler general
+INC=-I$(TOP_SOURCE) -I$(SOURCE) -I. -I$(QTINCLUDE)
+DEFS=-DQT_THREAD_SUPPORT -DQT3_SUPPORT
+
+# C++
+CXX=gcc
+CXXOPT_DEP=-MM -MG
+CXXWARN=-Wall -pedantic -Wno-deprecated -Woverloaded-virtual \
+ -Wsign-promo -Wsynth -Wno-long-long -Wno-strict-aliasing
+CXXOPT=-c -O3 -o
+CXXOPT_SO=-fPIC $(CXXOPT)
+
+# C
+CC=gcc
+CCOPT_DEP=-MM -MG
+CCWARN=
+CCOPT=-c -O3 -o
+CCOPT_SO=-fPIC $(CCOPT)
+
+# Linker
+LINK=g++
+LOPT=-g -Wl,-E -o
+LOPT_SO=-g -shared -fPIC -o
+
+LIBS=-L$(QTLIB) -lQtGui -lQtCore -lQtXml -lrt -lstdc++ -lcrypt
+
+.PHONY: install
+install:
+ mkdir -p $(INSTALL_BINDIR)
+ cp main/$(EXEC_NAME) $(INSTALL_BINDIR)
+ for bin in $(OTHER_BIN) ; \
+ do \
+ cp main/$$bin $(INSTALL_BINDIR) ; \
+ done
+ for plugin in $(PLUGINS) ; \
+ do \
+ cp $$plugin/*.so $(INSTALL_BINDIR) ; \
+ done
+ chmod 755 $(INSTALL_BINDIR) $(INSTALL_BINDIR)/*
+