You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
#!@WHICH_MAKE@ -f
|
|
#
|
|
# Copyright: 2016 Felix Salfelder <felix@salfelder.org>
|
|
#
|
|
# This file is part of "Gnucap", the Gnu Circuit Analysis Package
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
# any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
# 02110-1301, USA.
|
|
# ------------------------------------------------------------------
|
|
|
|
help:
|
|
@echo "$(lastword $(MAKEFILE_LIST)) <target>"
|
|
|
|
AM_V_CXX_ = @echo CXX $@;
|
|
AM_V_CXX_0 = @echo CXX $@;
|
|
AM_V_CXX = $(AM_V_CXX_$V)
|
|
|
|
GNUCAP_CONF = $(shell which gnucap-conf$(SUFFIX))
|
|
|
|
#incomplete?
|
|
CXX = $(shell $(GNUCAP_CONF) --cxx)
|
|
|
|
GNUCAP_CPPFLAGS = @GNUCAP_CPPFLAGS@
|
|
GNUCAP_CXXFLAGS = @GNUCAP_CXXFLAGS@
|
|
GNUCAP_LDFLAGS = @GNUCAP_LDFLAGS@
|
|
GNUCAP_LIBDIR = @GNUCAP_LIBDIR@
|
|
GNUCAP_EXEC_PREFIX = @GNUCAP_EXEC_PREFIX@
|
|
|
|
# non GNUCAP_-prefixed variables are meant to override stuff.
|
|
%.so: %.cc
|
|
$(AM_V_CXX)$(CXX) $(CPPFLAGS) $(GNUCAP_CPPFLAGS) $(CXXFLAGS) $(GNUCAP_CXXFLAGS) $< -shared -fPIC -DPIC $(LDFLAGS) $(GNUCAP_LDFLAGS) $(LIBS) $(GNUCAP_LIBS) -o $@
|