Rev | Line | |
---|
[54] | 1 | -include ../Makefile.config
|
---|
| 2 |
|
---|
| 3 | PROJDIR = ..
|
---|
| 4 | WORKDIR = $(PROJDIR)/cfg
|
---|
| 5 |
|
---|
| 6 | CPPFLAGS := $(CPPFLAGS) -I$(BOOST_DIR) -I$(PROJDIR)
|
---|
| 7 | CXXFLAGS := $(CXXFLAGS) -O2 -g
|
---|
| 8 |
|
---|
| 9 | CXXFILES = \
|
---|
| 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 |
|
---|
| 19 | OBJFILES := $(CXXFILES:%.cpp=%.o)
|
---|
| 20 |
|
---|
| 21 | ifeq ($(OSTYPE),msys)
|
---|
| 22 | BOOST_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
|
---|
| 23 | else
|
---|
| 24 | # modified by takuya 110823
|
---|
| 25 | # BOOST_LIBFILES := $(BOOST_LIBFILES) -lboost_system$(LIBBOOST_SUFFIX) -lboost_filesystem$(LIBBOOST_SUFFIX) -lboost_program_options$(LIBBOOST_SUFFIX)
|
---|
| 26 | BOOST_LIBFILES := $(BOOST_LIBFILES) -lboost_system$(LIBBOOST_SUFFIX) -lboost_filesystem$(LIBBOOST_SUFFIX) -lboost_program_options$(LIBBOOST_SUFFIX) -lboost_regex$(LIBBOOST_SUFFIX)
|
---|
| 27 | endif
|
---|
| 28 |
|
---|
| 29 | LIBFILES = $(PROJDIR)/toppers/oil/liboil.a $(PROJDIR)/toppers/itronx/libitronx.a \
|
---|
| 30 | $(PROJDIR)/toppers/libtoppers.a \
|
---|
| 31 |
|
---|
| 32 | all: cfg
|
---|
| 33 |
|
---|
| 34 | cfg: $(OBJFILES) $(LIBFILES)
|
---|
| 35 | $(CXX) $(CXXFLAGS) -o cfg $(OBJFILES) -L$(LIBBOOST_DIR) $(LIBFILES) $(BOOST_LIBFILES)
|
---|
| 36 |
|
---|
| 37 | depend:
|
---|
| 38 | $(CXX) $(CPPFLAGS) -M $(CXXFILES) > Makefile.depend
|
---|
| 39 |
|
---|
| 40 | clean:
|
---|
| 41 | -rm -f *.o cfg *.exe
|
---|
| 42 |
|
---|
| 43 | -include Makefile.depend
|
---|
Note:
See
TracBrowser
for help on using the repository browser.