• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂d40657e1b6827b6fc5d216d1a411c572c958a7ae (tree)
時間2013-01-25 16:56:44
作者Katsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Fix ignored CFLAGS. #28588

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1260 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

差異

--- a/src/Makefile
+++ b/src/Makefile
@@ -18,20 +18,22 @@
1818 #//************************************************************************//
1919
2020 .PHONY: all clean
21-CONFIGURE_OPTIONS_INT=
22-CFLAGS_INT=
23-LDFLAGS_INT=
21+CONFIGURE_OPTIONS =
22+CFLAGS =
23+CXXFLAGS =
24+LDFLAGS =
25+override CXXFLAGS += $(CFLAGS)
2426 ifeq ($(OPENBLASDIR),)
2527 ifeq ($(BLASLIB),openblas)
26- CONFIGURE_OPTIONS_INT+= --with-blas=openblas
28+ override CONFIGURE_OPTIONS += --with-blas=openblas
2729 endif
2830 else
29- CONFIGURE_OPTIONS_INT+= --with-openblas=$(OPENBLASDIR)
31+ override CONFIGURE_OPTIONS += --with-openblas=$(OPENBLASDIR)
3032 endif
3133
3234 ifeq ($(BOOSTDIR),)
3335 else
34- CONFIGURE_OPTIONS_INT+= --with-boost=$(BOOSTDIR)
36+ override CONFIGURE_OPTIONS += --with-boost=$(BOOSTDIR)
3537 endif
3638
3739 all: MolDS.out
@@ -39,7 +41,7 @@ all: MolDS.out
3941 build/Makefile:
4042 mkdir -p build
4143 cd build; \
42- CFLAGS="$(CFLAGS)$(CFLAGS_INT)" LDFLAGS="$(LDFLAGS)$(LDFLAGS_INT)" ../configure $(CONFIGURE_OPTIONS)$(CONFIGURE_OPTIONS_INT)
44+ ../configure $(CONFIGURE_OPTIONS) CXXFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)'
4345
4446 build/MolDS: build/Makefile $(wildcard *.cpp) $(wildcard */*.cpp) $(wildcard */*.h)
4547 +make -C build