1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/science/qcl/files/patch-qc-Makefile
Pav Lucistnik 34fc69aa63 - Update to 0.6.1
PR:		ports/77070
Submitted by:	Brad Huntting <huntting@glarp.com> (maintainer)
2005-02-09 22:31:42 +00:00

50 lines
1.1 KiB
Plaintext

--- qc/Makefile.orig Mon Mar 29 15:24:31 2004
+++ qc/Makefile Tue Feb 1 01:27:33 2005
@@ -12,7 +12,7 @@
# Debugging options
-DEBUG = -g -O2 -DQC_DEBUG
+DEBUG = -DQC_DEBUG
#DEBUG = -g -pg -DQC_DEBUG
#DEBUG = -O2
@@ -21,10 +21,8 @@
#PRGOPT = -DQC_USE_RAND48
-CC = g++
-CFLAGS = -c -pedantic -Wall $(DEBUG) $(PRGOPT)
-
-LNKOPT = -L. -lm -lqc
+CXXFLAGS += $(DEBUG) $(PRGOPT)
+LDFLAGS += -L. -lm -lqc
FILESCC = bitvec.cc terms.cc qustates.cc operator.cc
FILESH = bitvec.h terms.h qustates.h operator.h qc.h
@@ -36,23 +34,9 @@
ar rc libqc.a bitvec.o terms.o qustates.o operator.o
ranlib libqc.a
-bitvec.o: bitvec.cc bitvec.h
- $(CC) bitvec.cc -o bitvec.o $(CFLAGS)
-
-terms.o: terms.cc terms.h bitvec.h
- $(CC) terms.cc -o terms.o $(CFLAGS)
-
-qustates.o: qustates.cc qustates.h terms.h bitvec.h
- $(CC) qustates.cc -o qustates.o $(CFLAGS)
-
-operator.o: operator.cc operator.h qustates.h terms.h bitvec.h
- $(CC) operator.cc -o operator.o $(CFLAGS)
-
-shor.o: shor.cc qustates.h terms.h bitvec.h
- $(CC) shor.cc -o shor.o $(CFLAGS)
shor: shor.o libqc.a
- $(CC) shor.o -o shor $(LNKOPT)
+ $(CXX) shor.o -o shor $(LDFLAGS)
# Other Functions