1 | # GNU Make project makefile autogenerated by Premake
|
---|
2 |
|
---|
3 | ifndef config
|
---|
4 | config=release
|
---|
5 | endif
|
---|
6 |
|
---|
7 | ifndef verbose
|
---|
8 | SILENT = @
|
---|
9 | endif
|
---|
10 |
|
---|
11 | .PHONY: clean prebuild prelink
|
---|
12 |
|
---|
13 | ifeq ($(config),release)
|
---|
14 | RESCOMP = windres
|
---|
15 | TARGETDIR = ../../../binaries/system
|
---|
16 | TARGET = $(TARGETDIR)/libscriptinterface.a
|
---|
17 | OBJDIR = obj/scriptinterface_Release
|
---|
18 | PCH = ../../../source/pch/scriptinterface/precompiled.h
|
---|
19 | GCH = $(OBJDIR)/$(notdir $(PCH)).gch
|
---|
20 | DEFINES += -DNDEBUG -DCONFIG_FINAL=1 -DLIB_STATIC_LINK -DUSING_PCH
|
---|
21 | INCLUDES += -I../../../source/pch/scriptinterface -I../../../source -isystem ../../../libraries/source/spidermonkey/include-unix-release -isystem ../../../libraries/source/valgrind/include -isystem /usr/include/SDL2 -isystem /usr/X11R6/include/X11 -isystem /usr/X11R6/include -isystem /usr/local/include/X11 -isystem /usr/local/include -isystem /usr/include/X11
|
---|
22 | FORCE_INCLUDE += -include $(OBJDIR)/$(notdir $(PCH))
|
---|
23 | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
---|
24 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden -D_REENTRANT
|
---|
25 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden -D_REENTRANT
|
---|
26 | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
---|
27 | LIBS +=
|
---|
28 | LDDEPS +=
|
---|
29 | ALL_LDFLAGS += $(LDFLAGS) -L../../../binaries/system -L/usr/X11R6/lib -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-rpath,'$$ORIGIN'
|
---|
30 | LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
---|
31 | define PREBUILDCMDS
|
---|
32 | endef
|
---|
33 | define PRELINKCMDS
|
---|
34 | endef
|
---|
35 | define POSTBUILDCMDS
|
---|
36 | endef
|
---|
37 | all: prebuild prelink $(TARGET)
|
---|
38 | @:
|
---|
39 |
|
---|
40 | endif
|
---|
41 |
|
---|
42 | ifeq ($(config),debug)
|
---|
43 | RESCOMP = windres
|
---|
44 | TARGETDIR = ../../../binaries/system
|
---|
45 | TARGET = $(TARGETDIR)/libscriptinterface_dbg.a
|
---|
46 | OBJDIR = obj/scriptinterface_Debug
|
---|
47 | PCH = ../../../source/pch/scriptinterface/precompiled.h
|
---|
48 | GCH = $(OBJDIR)/$(notdir $(PCH)).gch
|
---|
49 | DEFINES += -DLIB_STATIC_LINK -DUSING_PCH -DDEBUG
|
---|
50 | INCLUDES += -I../../../source/pch/scriptinterface -I../../../source -isystem ../../../libraries/source/spidermonkey/include-unix-debug -isystem ../../../libraries/source/valgrind/include -isystem /usr/include/SDL2 -isystem /usr/X11R6/include/X11 -isystem /usr/X11R6/include -isystem /usr/local/include/X11 -isystem /usr/local/include -isystem /usr/include/X11
|
---|
51 | FORCE_INCLUDE += -include $(OBJDIR)/$(notdir $(PCH))
|
---|
52 | ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
---|
53 | ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden -D_REENTRANT
|
---|
54 | ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -std=c++0x -fvisibility=hidden -D_REENTRANT
|
---|
55 | ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
---|
56 | LIBS +=
|
---|
57 | LDDEPS +=
|
---|
58 | ALL_LDFLAGS += $(LDFLAGS) -L../../../binaries/system -L/usr/X11R6/lib -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-rpath,'$$ORIGIN'
|
---|
59 | LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
---|
60 | define PREBUILDCMDS
|
---|
61 | endef
|
---|
62 | define PRELINKCMDS
|
---|
63 | endef
|
---|
64 | define POSTBUILDCMDS
|
---|
65 | endef
|
---|
66 | all: prebuild prelink $(TARGET)
|
---|
67 | @:
|
---|
68 |
|
---|
69 | endif
|
---|
70 |
|
---|
71 | OBJECTS := \
|
---|
72 | $(OBJDIR)/precompiled.o \
|
---|
73 | $(OBJDIR)/ScriptConversions.o \
|
---|
74 | $(OBJDIR)/ScriptInterface.o \
|
---|
75 | $(OBJDIR)/ScriptRuntime.o \
|
---|
76 | $(OBJDIR)/ScriptStats.o \
|
---|
77 |
|
---|
78 | RESOURCES := \
|
---|
79 |
|
---|
80 | CUSTOMFILES := \
|
---|
81 |
|
---|
82 | SHELLTYPE := msdos
|
---|
83 | ifeq (,$(ComSpec)$(COMSPEC))
|
---|
84 | SHELLTYPE := posix
|
---|
85 | endif
|
---|
86 | ifeq (/bin,$(findstring /bin,$(SHELL)))
|
---|
87 | SHELLTYPE := posix
|
---|
88 | endif
|
---|
89 |
|
---|
90 | $(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES)
|
---|
91 | @echo Linking scriptinterface
|
---|
92 | ifeq (posix,$(SHELLTYPE))
|
---|
93 | $(SILENT) mkdir -p $(TARGETDIR)
|
---|
94 | else
|
---|
95 | $(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
---|
96 | endif
|
---|
97 | $(SILENT) $(LINKCMD)
|
---|
98 | $(POSTBUILDCMDS)
|
---|
99 |
|
---|
100 | clean:
|
---|
101 | @echo Cleaning scriptinterface
|
---|
102 | ifeq (posix,$(SHELLTYPE))
|
---|
103 | $(SILENT) rm -f $(TARGET)
|
---|
104 | $(SILENT) rm -rf $(OBJDIR)
|
---|
105 | else
|
---|
106 | $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
---|
107 | $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
---|
108 | endif
|
---|
109 |
|
---|
110 | prebuild:
|
---|
111 | $(PREBUILDCMDS)
|
---|
112 |
|
---|
113 | prelink:
|
---|
114 | $(PRELINKCMDS)
|
---|
115 |
|
---|
116 | ifneq (,$(PCH))
|
---|
117 | $(OBJECTS): $(GCH) $(PCH)
|
---|
118 | $(GCH): $(PCH)
|
---|
119 | @echo $(notdir $<)
|
---|
120 | ifeq (posix,$(SHELLTYPE))
|
---|
121 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
122 | else
|
---|
123 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
124 | endif
|
---|
125 | $(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
---|
126 | endif
|
---|
127 |
|
---|
128 | $(OBJDIR)/precompiled.o: ../../../source/pch/scriptinterface/precompiled.cpp
|
---|
129 | @echo $(notdir $<)
|
---|
130 | ifeq (posix,$(SHELLTYPE))
|
---|
131 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
132 | else
|
---|
133 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
134 | endif
|
---|
135 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
136 | $(OBJDIR)/ScriptConversions.o: ../../../source/scriptinterface/ScriptConversions.cpp
|
---|
137 | @echo $(notdir $<)
|
---|
138 | ifeq (posix,$(SHELLTYPE))
|
---|
139 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
140 | else
|
---|
141 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
142 | endif
|
---|
143 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
144 | $(OBJDIR)/ScriptInterface.o: ../../../source/scriptinterface/ScriptInterface.cpp
|
---|
145 | @echo $(notdir $<)
|
---|
146 | ifeq (posix,$(SHELLTYPE))
|
---|
147 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
148 | else
|
---|
149 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
150 | endif
|
---|
151 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
152 | $(OBJDIR)/ScriptRuntime.o: ../../../source/scriptinterface/ScriptRuntime.cpp
|
---|
153 | @echo $(notdir $<)
|
---|
154 | ifeq (posix,$(SHELLTYPE))
|
---|
155 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
156 | else
|
---|
157 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
158 | endif
|
---|
159 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
160 | $(OBJDIR)/ScriptStats.o: ../../../source/scriptinterface/ScriptStats.cpp
|
---|
161 | @echo $(notdir $<)
|
---|
162 | ifeq (posix,$(SHELLTYPE))
|
---|
163 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
164 | else
|
---|
165 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
166 | endif
|
---|
167 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
168 |
|
---|
169 | -include $(OBJECTS:%.o=%.d)
|
---|
170 | ifneq (,$(PCH))
|
---|
171 | -include $(OBJDIR)/$(notdir $(PCH)).d
|
---|
172 | endif
|
---|