aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/makefile b/makefile
index cb1274b..43f39f1 100644
--- a/makefile
+++ b/makefile
@@ -59,6 +59,8 @@ endif
59ifneq ($(UNAME_S),Darwin) 59ifneq ($(UNAME_S),Darwin)
60 LINK_FLAGS += -lstdc++fs -Wl,-E 60 LINK_FLAGS += -lstdc++fs -Wl,-E
61 PLAT = linux 61 PLAT = linux
62else
63 LINK_FLAGS += -framework CoreFoundation -framework CoreServices
62endif 64endif
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),)
123endif 125endif
124 126
125SOURCES := $(filter-out $(SRC_PATH)/yue_wasm.cpp, $(SOURCES)) 127SOURCES := $(filter-out $(SRC_PATH)/yue_wasm.cpp, $(SOURCES))
128SOURCES := $(filter-out $(SRC_PATH)/3rdParty/%, $(SOURCES))
126 129
127ifeq ($(NO_LUA),true) 130ifeq ($(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
135DEPS = $(OBJECTS:.o=.d) 138DEPS = $(OBJECTS:.o=.d)
136 139
140SOURCES += $(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
138ifeq ($(UNAME_S),Darwin) 143ifeq ($(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
146else 152else
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
153endif 160endif
154 161
155# Version macros 162# Version macros