source: cfg_itronx+oil_gcc/Makefile@ 165

Last change on this file since 165 was 55, checked in by ertl-ishikawa, 12 years ago

INTN_MAX対応のためにSTDC_LIMIT_MACROSの定義を追加

File size: 1.2 KB
Line 
1-include Makefile.config
2
3ifndef BOOST_DIR
4 ifndef BOOST_VERSION
5 BOOST_VERSION = 1_42_0
6 endif
7 ifeq ($(OSTYPE), msys)
8 BOOST_DIR = /mingw/include/boost-$(BOOST_VERSION)
9 else
10 ifeq ($(shell echo $$OSTYPE), cygwin)
11 BOOST_DIR = /usr/include/boost-$(BOOST_VERSION)
12 else
13 BOOST_DIR = /usr/local/include/boost-$(BOOST_VERSION)
14 endif
15 endif
16endif
17
18# 非力なマシンなどでコンパイルに非常に長い時間がかかる、もしくはコンパイル時に
19# ハングアップする場合には、-O0に変更してみてください。
20OPTIMIZE = -O2 -m32
21OPTIONS := $(OPTIONS) -D__STDC_LIMIT_MACROS
22
23SUBDIRS = toppers \
24 toppers/itronx \
25 toppers/oil \
26 cfg
27
28all: $(SUBDIRS)
29
30$(SUBDIRS)::
31 make BOOST_DIR="$(BOOST_DIR)" LIBBOOST_SUFFIX="$(LIBBOOST_SUFFIX)" CXXFLAGS="$(OPTIMIZE) $(OPTIONS)" -C $@
32
33depend:
34 for subdir in $(SUBDIRS) ; do \
35 if test -d $$subdir ; then \
36 make BOOST_DIR="$(BOOST_DIR)" LIBBOOST_SUFFIX="$(LIBBOOST_SUFFIX)" depend -C $$subdir; \
37 fi ; \
38 done \
39
40clean:
41 for subdir in $(SUBDIRS) ; do \
42 if test -d $$subdir ; then \
43 make clean -C $$subdir ; \
44 fi ; \
45 done \
46
47realclean: clean
48 for subdir in $(SUBDIRS) ; do \
49 if test -d $$subdir ; then \
50 rm -f $$subdir/Makefile.depend ; \
51 fi ; \
52 done
53 rm -f Makefile.config
54
Note: See TracBrowser for help on using the repository browser.