diff options
Diffstat (limited to 'compile/win32/Makefile')
-rw-r--r-- | compile/win32/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compile/win32/Makefile b/compile/win32/Makefile index c4f7bdb..f26829a 100644 --- a/compile/win32/Makefile +++ b/compile/win32/Makefile @@ -16,7 +16,7 @@ CPPFLAGS = $(INCLUDES) -O4 -march=i686 -DSTDC_HEADERS -DREADLINE_STATIC -fexcept LDFLAGS = -march=i586 -O4 SOURCES = \ -../../Dalos/Dalos.cc ../../cd-tool.cpp ../../luapatch.cpp +../../cd-tool.cpp ../../luapatch.cpp MOGLTK_SOURCES = \ ../../mogltk/lib/base.cc ../../mogltk/lib/glwidgets.cc \ @@ -36,7 +36,7 @@ BALTISOT_SOURCES = \ ../../generic/lib/Input.cc ../../generic/lib/fileutils.cc \ ../../generic/lib/LuaHandle.cc ../../generic/lib/generic.cc \ ../../generic/lib/checkargs.c ../../generic/lib/datecalc.c \ -../../generic/lub/LuaConfigFile.cc +../../generic/lib/LuaRegex.cc ../../generic/lib/LuaConfigFile.cc ZLIB_SOURCES = \ ../../generic/lib/zlib/src/adler32.c ../../generic/lib/zlib/src/inffast.c \ @@ -151,11 +151,15 @@ source: dep $(COMMON_SOURCES) ../../cd-tool.cpp define OBJECT_C_template $(addsuffix .o, $(notdir $(basename $(1)))): $(src) $$(CC) $$(CPPFLAGS) $$(CFLAGS) -c $(src) + $(addsuffix .dep, $(notdir $(basename $(1)))): $(src) + $$(CC) $$(CPPFLAGS) $$(CFLAGS) -MM $(src) -o $$@ endef define OBJECT_CXX_template $(addsuffix .o, $(notdir $(basename $(1)))): $(src) $$(CXX) $$(CPPFLAGS) $$(CXXFLAGS) -c $(src) + $(addsuffix .dep, $(notdir $(basename $(1)))): $(src) + $$(CXX) $$(CPPFLAGS) $$(CXXFLAGS) -MM $(src) -o $$@ endef $(foreach src, $(WHOLE_SOURCES), $(if $(filter %.c, $(src)), $(eval $(call OBJECT_C_template, $(src))), $(eval $(call OBJECT_CXX_template, $(src))))) |