source: cfg_itronx+oil_gcc/Makefile@ 54

Last change on this file since 54 was 54, checked in by ertl-ishikawa, 10 years ago

cfg+oil対応コンフィギュレータを追加

File size: 1.1 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
21
22SUBDIRS = toppers \
23 toppers/itronx \
24 toppers/oil \
25 cfg
26
27all: $(SUBDIRS)
28
29$(SUBDIRS)::
30 make BOOST_DIR="$(BOOST_DIR)" LIBBOOST_SUFFIX="$(LIBBOOST_SUFFIX)" CXXFLAGS="$(OPTIMIZE) $(OPTIONS)" -C $@
31
32depend:
33 for subdir in $(SUBDIRS) ; do \
34 if test -d $$subdir ; then \
35 make BOOST_DIR="$(BOOST_DIR)" LIBBOOST_SUFFIX="$(LIBBOOST_SUFFIX)" depend -C $$subdir; \
36 fi ; \
37 done \
38
39clean:
40 for subdir in $(SUBDIRS) ; do \
41 if test -d $$subdir ; then \
42 make clean -C $$subdir ; \
43 fi ; \
44 done \
45
46realclean: clean
47 for subdir in $(SUBDIRS) ; do \
48 if test -d $$subdir ; then \
49 rm -f $$subdir/Makefile.depend ; \
50 fi ; \
51 done
52 rm -f Makefile.config
53
Note: See TracBrowser for help on using the repository browser.