diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -59,6 +59,8 @@ endif | |||
59 | ifneq ($(UNAME_S),Darwin) | 59 | ifneq ($(UNAME_S),Darwin) |
60 | LINK_FLAGS += -lstdc++fs -Wl,-E | 60 | LINK_FLAGS += -lstdc++fs -Wl,-E |
61 | PLAT = linux | 61 | PLAT = linux |
62 | else | ||
63 | LINK_FLAGS += -framework CoreFoundation -framework CoreServices | ||
62 | endif | 64 | endif |
63 | 65 | ||
64 | # Function used to check variables. Use on the command line: | 66 | # Function used to check variables. Use on the command line: |
@@ -123,6 +125,7 @@ ifeq ($(SOURCES),) | |||
123 | endif | 125 | endif |
124 | 126 | ||
125 | SOURCES := $(filter-out $(SRC_PATH)/yue_wasm.cpp, $(SOURCES)) | 127 | SOURCES := $(filter-out $(SRC_PATH)/yue_wasm.cpp, $(SOURCES)) |
128 | SOURCES := $(filter-out $(SRC_PATH)/3rdParty/%, $(SOURCES)) | ||
126 | 129 | ||
127 | ifeq ($(NO_LUA),true) | 130 | ifeq ($(NO_LUA),true) |
128 | SOURCES := $(filter-out $(SRC_PATH)/yuescript/yuescript.cpp, $(SOURCES)) | 131 | SOURCES := $(filter-out $(SRC_PATH)/yuescript/yuescript.cpp, $(SOURCES)) |
@@ -134,6 +137,8 @@ OBJECTS = $(SOURCES:$(SRC_PATH)/%.$(SRC_EXT)=$(BUILD_PATH)/%.o) | |||
134 | # Set the dependency files that will be used to add header dependencies | 137 | # Set the dependency files that will be used to add header dependencies |
135 | DEPS = $(OBJECTS:.o=.d) | 138 | DEPS = $(OBJECTS:.o=.d) |
136 | 139 | ||
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 | ||
141 | |||
137 | # Macros for timing compilation | 142 | # Macros for timing compilation |
138 | ifeq ($(UNAME_S),Darwin) | 143 | ifeq ($(UNAME_S),Darwin) |
139 | CUR_TIME = awk 'BEGIN{srand(); print srand()}' | 144 | CUR_TIME = awk 'BEGIN{srand(); print srand()}' |
@@ -143,6 +148,7 @@ ifeq ($(UNAME_S),Darwin) | |||
143 | $(RM) $(TIME_FILE) ; \ | 148 | $(RM) $(TIME_FILE) ; \ |
144 | st=$$((`$(CUR_TIME)` - $$st)) ; \ | 149 | st=$$((`$(CUR_TIME)` - $$st)) ; \ |
145 | echo $$st | 150 | 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 | ||
146 | else | 152 | else |
147 | TIME_FILE = $(dir $@).$(notdir $@)_time | 153 | TIME_FILE = $(dir $@).$(notdir $@)_time |
148 | START_TIME = date '+%s' > $(TIME_FILE) | 154 | START_TIME = date '+%s' > $(TIME_FILE) |
@@ -150,6 +156,7 @@ else | |||
150 | $(RM) $(TIME_FILE) ; \ | 156 | $(RM) $(TIME_FILE) ; \ |
151 | st=$$((`date '+%s'` - $$st - 86400)) ; \ | 157 | st=$$((`date '+%s'` - $$st - 86400)) ; \ |
152 | echo `date -u -d @$$st '+%H:%M:%S'` | 158 | 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 | ||
153 | endif | 160 | endif |
154 | 161 | ||
155 | # Version macros | 162 | # Version macros |