diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -54,6 +54,9 @@ endif | |||
54 | INCLUDES += -I $(SRC_PATH)/3rdParty/lua | 54 | INCLUDES += -I $(SRC_PATH)/3rdParty/lua |
55 | LINK_FLAGS += -L $(SRC_PATH)/3rdParty/lua -llua -ldl | 55 | LINK_FLAGS += -L $(SRC_PATH)/3rdParty/lua -llua -ldl |
56 | endif | 56 | endif |
57 | ifeq ($(NO_WATCHER),true) | ||
58 | COMPILE_FLAGS += -DYUE_NO_WATCHER | ||
59 | endif | ||
57 | 60 | ||
58 | # Add platform related linker flag | 61 | # Add platform related linker flag |
59 | ifneq ($(UNAME_S),Darwin) | 62 | ifneq ($(UNAME_S),Darwin) |
@@ -137,7 +140,9 @@ OBJECTS = $(SOURCES:$(SRC_PATH)/%.$(SRC_EXT)=$(BUILD_PATH)/%.o) | |||
137 | # Set the dependency files that will be used to add header dependencies | 140 | # Set the dependency files that will be used to add header dependencies |
138 | DEPS = $(OBJECTS:.o=.d) | 141 | DEPS = $(OBJECTS:.o=.d) |
139 | 142 | ||
140 | SOURCES += $(SRC_PATH)/3rdParty/efsw/Debug.cpp $(SRC_PATH)/3rdParty/efsw/DirectorySnapshot.cpp $(SRC_PATH)/3rdParty/efsw/DirectorySnapshotDiff.cpp $(SRC_PATH)/3rdParty/efsw/DirWatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/FileInfo.cpp $(SRC_PATH)/3rdParty/efsw/FileSystem.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcher.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherCWrapper.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherImpl.cpp $(SRC_PATH)/3rdParty/efsw/Log.cpp $(SRC_PATH)/3rdParty/efsw/Mutex.cpp $(SRC_PATH)/3rdParty/efsw/String.cpp $(SRC_PATH)/3rdParty/efsw/System.cpp $(SRC_PATH)/3rdParty/efsw/Thread.cpp $(SRC_PATH)/3rdParty/efsw/Watcher.cpp $(SRC_PATH)/3rdParty/efsw/WatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/FileSystemImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/MutexImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/SystemImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/ThreadImpl.cpp | 143 | ifneq ($(NO_WATCHER),true) |
144 | SOURCES += $(SRC_PATH)/3rdParty/efsw/Debug.cpp $(SRC_PATH)/3rdParty/efsw/DirectorySnapshot.cpp $(SRC_PATH)/3rdParty/efsw/DirectorySnapshotDiff.cpp $(SRC_PATH)/3rdParty/efsw/DirWatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/FileInfo.cpp $(SRC_PATH)/3rdParty/efsw/FileSystem.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcher.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherCWrapper.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherImpl.cpp $(SRC_PATH)/3rdParty/efsw/Log.cpp $(SRC_PATH)/3rdParty/efsw/Mutex.cpp $(SRC_PATH)/3rdParty/efsw/String.cpp $(SRC_PATH)/3rdParty/efsw/System.cpp $(SRC_PATH)/3rdParty/efsw/Thread.cpp $(SRC_PATH)/3rdParty/efsw/Watcher.cpp $(SRC_PATH)/3rdParty/efsw/WatcherGeneric.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/FileSystemImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/MutexImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/SystemImpl.cpp $(SRC_PATH)/3rdParty/efsw/platform/posix/ThreadImpl.cpp | ||
145 | endif | ||
141 | 146 | ||
142 | # Macros for timing compilation | 147 | # Macros for timing compilation |
143 | ifeq ($(UNAME_S),Darwin) | 148 | ifeq ($(UNAME_S),Darwin) |
@@ -148,7 +153,9 @@ ifeq ($(UNAME_S),Darwin) | |||
148 | $(RM) $(TIME_FILE) ; \ | 153 | $(RM) $(TIME_FILE) ; \ |
149 | st=$$((`$(CUR_TIME)` - $$st)) ; \ | 154 | st=$$((`$(CUR_TIME)` - $$st)) ; \ |
150 | echo $$st | 155 | echo $$st |
151 | SOURCES += $(SRC_PATH)/3rdParty/efsw/FileWatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/WatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/WatcherKqueue.cpp | 156 | ifneq ($(NO_WATCHER),true) |
157 | SOURCES += $(SRC_PATH)/3rdParty/efsw/FileWatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/WatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/WatcherKqueue.cpp | ||
158 | endif | ||
152 | else | 159 | else |
153 | TIME_FILE = $(dir $@).$(notdir $@)_time | 160 | TIME_FILE = $(dir $@).$(notdir $@)_time |
154 | START_TIME = date '+%s' > $(TIME_FILE) | 161 | START_TIME = date '+%s' > $(TIME_FILE) |
@@ -156,7 +163,9 @@ else | |||
156 | $(RM) $(TIME_FILE) ; \ | 163 | $(RM) $(TIME_FILE) ; \ |
157 | st=$$((`date '+%s'` - $$st - 86400)) ; \ | 164 | st=$$((`date '+%s'` - $$st - 86400)) ; \ |
158 | echo `date -u -d @$$st '+%H:%M:%S'` | 165 | echo `date -u -d @$$st '+%H:%M:%S'` |
159 | SOURCES += $(SRC_PATH)/3rdParty/efsw/FileWatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/WatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/WatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherInotify.cpp $(SRC_PATH)/3rdParty/efsw/WatcherInotify.cpp | 166 | ifneq ($(NO_WATCHER),true) |
167 | SOURCES += $(SRC_PATH)/3rdParty/efsw/FileWatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/WatcherFSEvents.cpp $(SRC_PATH)/3rdParty/efsw/WatcherKqueue.cpp $(SRC_PATH)/3rdParty/efsw/FileWatcherInotify.cpp $(SRC_PATH)/3rdParty/efsw/WatcherInotify.cpp | ||
168 | endif | ||
160 | endif | 169 | endif |
161 | 170 | ||
162 | # Version macros | 171 | # Version macros |