Ticket #5157: mocks_real.make

File mocks_real.make, 4.8 KB (added by Andy Alt, 6 years ago)
Line 
1# GNU Make project makefile autogenerated by Premake
2
3ifndef config
4 config=release
5endif
6
7ifndef verbose
8 SILENT = @
9endif
10
11.PHONY: clean prebuild prelink
12
13ifeq ($(config),release)
14 RESCOMP = windres
15 TARGETDIR = ../../../binaries/system
16 TARGET = $(TARGETDIR)/libmocks_real.a
17 OBJDIR = obj/mocks_real_Release
18 DEFINES += -DNDEBUG -DCONFIG_FINAL=1 -DLIB_STATIC_LINK
19 INCLUDES += -I../../../source/pch/mocks_real -I../../../source -isystem ../../../libraries/source/cxxtest-4.4 -isystem /usr/X11R6/include/X11 -isystem /usr/X11R6/include -isystem /usr/local/include/X11 -isystem /usr/local/include -isystem /usr/include/X11
20 FORCE_INCLUDE +=
21 ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
22 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
23 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
24 ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
25 LIBS +=
26 LDDEPS +=
27 ALL_LDFLAGS += $(LDFLAGS) -L../../../binaries/system -L/usr/X11R6/lib -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-rpath,'$$ORIGIN'
28 LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
29 define PREBUILDCMDS
30 endef
31 define PRELINKCMDS
32 endef
33 define POSTBUILDCMDS
34 endef
35all: prebuild prelink $(TARGET)
36 @:
37
38endif
39
40ifeq ($(config),debug)
41 RESCOMP = windres
42 TARGETDIR = ../../../binaries/system
43 TARGET = $(TARGETDIR)/libmocks_real_dbg.a
44 OBJDIR = obj/mocks_real_Debug
45 DEFINES += -DDEBUG -DLIB_STATIC_LINK
46 INCLUDES += -I../../../source/pch/mocks_real -I../../../source -isystem ../../../libraries/source/cxxtest-4.4 -isystem /usr/X11R6/include/X11 -isystem /usr/X11R6/include -isystem /usr/local/include/X11 -isystem /usr/local/include -isystem /usr/include/X11
47 FORCE_INCLUDE +=
48 ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
49 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
50 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
51 ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
52 LIBS +=
53 LDDEPS +=
54 ALL_LDFLAGS += $(LDFLAGS) -L../../../binaries/system -L/usr/X11R6/lib -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-rpath,'$$ORIGIN'
55 LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
56 define PREBUILDCMDS
57 endef
58 define PRELINKCMDS
59 endef
60 define POSTBUILDCMDS
61 endef
62all: prebuild prelink $(TARGET)
63 @:
64
65endif
66
67OBJECTS := \
68 $(OBJDIR)/mocks_real.o \
69
70RESOURCES := \
71
72CUSTOMFILES := \
73
74SHELLTYPE := msdos
75ifeq (,$(ComSpec)$(COMSPEC))
76 SHELLTYPE := posix
77endif
78ifeq (/bin,$(findstring /bin,$(SHELL)))
79 SHELLTYPE := posix
80endif
81
82$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES)
83 @echo Linking mocks_real
84ifeq (posix,$(SHELLTYPE))
85 $(SILENT) mkdir -p $(TARGETDIR)
86else
87 $(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
88endif
89 $(SILENT) $(LINKCMD)
90 $(POSTBUILDCMDS)
91
92clean:
93 @echo Cleaning mocks_real
94ifeq (posix,$(SHELLTYPE))
95 $(SILENT) rm -f $(TARGET)
96 $(SILENT) rm -rf $(OBJDIR)
97else
98 $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
99 $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
100endif
101
102prebuild:
103 $(PREBUILDCMDS)
104
105prelink:
106 $(PRELINKCMDS)
107
108ifneq (,$(PCH))
109$(OBJECTS): $(GCH) $(PCH)
110$(GCH): $(PCH)
111 @echo $(notdir $<)
112ifeq (posix,$(SHELLTYPE))
113 $(SILENT) mkdir -p $(OBJDIR)
114else
115 $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
116endif
117 $(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
118endif
119
120$(OBJDIR)/mocks_real.o: ../../../source/mocks/mocks_real.cpp
121 @echo $(notdir $<)
122ifeq (posix,$(SHELLTYPE))
123 $(SILENT) mkdir -p $(OBJDIR)
124else
125 $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
126endif
127 $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
128
129-include $(OBJECTS:%.o=%.d)
130ifneq (,$(PCH))
131 -include $(OBJDIR)/$(notdir $(PCH)).d
132endif