-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeAM.sh
executable file
·44 lines (35 loc) · 1.53 KB
/
MakeAM.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env sh
rm -f Makefile.am;
echo '
#+----------------------------------------------------------------------------+
#| Description: Magic Set Editor - Program to make Magic (tm) cards |
#| Copyright: (C) 2001 - 2008 Twan van Laarhoven and "coppro" |
#| License: GNU General Public License 2 or later (see file COPYING) |
#+----------------------------------------------------------------------------+
# This file is generated by MakeAM.sh. DO NOT EDIT!
# This flag allows us to use subdirectories:
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = magicseteditor
AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -I. -Wall -Wno-unused-local-typedefs -Wno-potentially-evaluated-expression -fPIC -std=c++11
AM_LDFLAGS = $(BOOST_LDFLAGS)
.hpp.gch:
target=`echo $@ | sed "s|.gch$$|.hpp|"`;\
depbase=`echo $$target | sed "s|[^/]*\$$|$(DEPDIR)/&|;s|\\.hpp\$$||"`;\
$(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpch -x c++-header -c $$target &&\
$(am__mv) $$depbase.Tpch $$depbase.Pch
touch $@
.gch.o:
gcc -x c - -c -o $@ <<<""
magicseteditor_LDADD = @WX_LIBS@ $(BOOST_REGEX_LIB) $(BOOST_SYSTEM_LIB)
magicseteditor_CXXFLAGS = $(AM_CXXFLAGS)
magicseteditor_SOURCES =
if GLIBCPP_BUILD_PCH
clean-local:
rm -f ./src/util/prec.hpp.gch
rm -f ./src/util/prec.gch
include ./src/util/$(DEPDIR)/prec.Pch
magicseteditor_SOURCES += ./src/util/prec.gch
magicseteditor_CXXFLAGS += -fpch-deps
endif
# The script used to generate is MakeAM.sh' > Makefile.am;
find . -name *.cpp | sed "s/\./magicseteditor_SOURCES += ./" >> Makefile.am;