# Makefile for qc-0.4
#
# This file is part of the Quantum Computation Library (QCLIB).
#
# (c) Copyright by Bernhard Oemer <oemer@tph.tuwien.ac.at>, 1998
#
# This program comes without any warranty; without even the implied
# warranty of merchantability or fitness for any particular purpose.
#
# This program is free software under the terms of the
# GNU General Public Licence (GPL) version 2 or higher
# Debugging options
DEBUG = -DQC_DEBUG
#DEBUG = -g -pg -DQC_DEBUG
#DEBUG = -O2
# Comment out if you if you want to use SysV Xrand48() linear congruential
# PRG instead of the default random() non-linear additive feedback PRG.
#PRGOPT = -DQC_USE_RAND48
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
SOURCE = $(FILESCC) $(FILESH) shor.cc Makefile
all: libqc.a
libqc.a: bitvec.o terms.o qustates.o operator.o
ar rc libqc.a bitvec.o terms.o qustates.o operator.o
ranlib libqc.a
shor: shor.o libqc.a
$(CXX) shor.o -o shor $(LDFLAGS)
# Other Functions
SOURCEFILES = `ls $(SOURCE)`
edit:
nedit -iconic $(SOURCEFILES) &
clean:
rm -f *.o
clear: clean
rm -f libqc.a shor
syntax highlighted by Code2HTML, v. 0.9.1