source: cfg_itronx+oil_gcc/cfg/Makefile@ 165

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

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

File size: 1.2 KB
Line 
1-include ../Makefile.config
2
3PROJDIR = ..
4WORKDIR = $(PROJDIR)/cfg
5
6CPPFLAGS := $(CPPFLAGS) -I$(BOOST_DIR) -I$(PROJDIR)
7CXXFLAGS := $(CXXFLAGS) -O2 -g
8
9CXXFILES = \
10 cfg.cpp \
11 cfg0.cpp \
12 cfg1.cpp \
13 cfg2.cpp \
14 cfg_init.cpp \
15 cfg3.cpp \
16 cfg4.cpp \
17 cfg_version.cpp
18
19OBJFILES := $(CXXFILES:%.cpp=%.o)
20
21ifeq ($(OSTYPE),msys)
22BOOST_LIBFILES = /mingw/lib/libboost_system-mgw-mt-s.lib /mingw/lib/libboost_filesystem-mgw-mt-s.lib /mingw/lib/libboost_program_options-mgw-mt-s.lib
23else
24# modified by takuya 110823
25# BOOST_LIBFILES := $(BOOST_LIBFILES) -lboost_system$(LIBBOOST_SUFFIX) -lboost_filesystem$(LIBBOOST_SUFFIX) -lboost_program_options$(LIBBOOST_SUFFIX)
26BOOST_LIBFILES := $(BOOST_LIBFILES) -lboost_system$(LIBBOOST_SUFFIX) -lboost_filesystem$(LIBBOOST_SUFFIX) -lboost_program_options$(LIBBOOST_SUFFIX) -lboost_regex$(LIBBOOST_SUFFIX)
27endif
28
29LIBFILES = $(PROJDIR)/toppers/oil/liboil.a $(PROJDIR)/toppers/itronx/libitronx.a \
30 $(PROJDIR)/toppers/libtoppers.a \
31
32all: cfg
33
34cfg: $(OBJFILES) $(LIBFILES)
35 $(CXX) $(CXXFLAGS) -o cfg $(OBJFILES) -L$(LIBBOOST_DIR) $(LIBFILES) $(BOOST_LIBFILES)
36
37depend:
38 $(CXX) $(CPPFLAGS) -M $(CXXFILES) > Makefile.depend
39
40clean:
41 -rm -f *.o cfg *.exe
42
43-include Makefile.depend
Note: See TracBrowser for help on using the repository browser.