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)/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
|
---|
35 | all: prebuild prelink $(TARGET)
|
---|
36 | @:
|
---|
37 |
|
---|
38 | endif
|
---|
39 |
|
---|
40 | ifeq ($(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
|
---|
62 | all: prebuild prelink $(TARGET)
|
---|
63 | @:
|
---|
64 |
|
---|
65 | endif
|
---|
66 |
|
---|
67 | OBJECTS := \
|
---|
68 | $(OBJDIR)/mocks_real.o \
|
---|
69 |
|
---|
70 | RESOURCES := \
|
---|
71 |
|
---|
72 | CUSTOMFILES := \
|
---|
73 |
|
---|
74 | SHELLTYPE := msdos
|
---|
75 | ifeq (,$(ComSpec)$(COMSPEC))
|
---|
76 | SHELLTYPE := posix
|
---|
77 | endif
|
---|
78 | ifeq (/bin,$(findstring /bin,$(SHELL)))
|
---|
79 | SHELLTYPE := posix
|
---|
80 | endif
|
---|
81 |
|
---|
82 | $(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES)
|
---|
83 | @echo Linking mocks_real
|
---|
84 | ifeq (posix,$(SHELLTYPE))
|
---|
85 | $(SILENT) mkdir -p $(TARGETDIR)
|
---|
86 | else
|
---|
87 | $(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
---|
88 | endif
|
---|
89 | $(SILENT) $(LINKCMD)
|
---|
90 | $(POSTBUILDCMDS)
|
---|
91 |
|
---|
92 | clean:
|
---|
93 | @echo Cleaning mocks_real
|
---|
94 | ifeq (posix,$(SHELLTYPE))
|
---|
95 | $(SILENT) rm -f $(TARGET)
|
---|
96 | $(SILENT) rm -rf $(OBJDIR)
|
---|
97 | else
|
---|
98 | $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
---|
99 | $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
---|
100 | endif
|
---|
101 |
|
---|
102 | prebuild:
|
---|
103 | $(PREBUILDCMDS)
|
---|
104 |
|
---|
105 | prelink:
|
---|
106 | $(PRELINKCMDS)
|
---|
107 |
|
---|
108 | ifneq (,$(PCH))
|
---|
109 | $(OBJECTS): $(GCH) $(PCH)
|
---|
110 | $(GCH): $(PCH)
|
---|
111 | @echo $(notdir $<)
|
---|
112 | ifeq (posix,$(SHELLTYPE))
|
---|
113 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
114 | else
|
---|
115 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
116 | endif
|
---|
117 | $(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
---|
118 | endif
|
---|
119 |
|
---|
120 | $(OBJDIR)/mocks_real.o: ../../../source/mocks/mocks_real.cpp
|
---|
121 | @echo $(notdir $<)
|
---|
122 | ifeq (posix,$(SHELLTYPE))
|
---|
123 | $(SILENT) mkdir -p $(OBJDIR)
|
---|
124 | else
|
---|
125 | $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
---|
126 | endif
|
---|
127 | $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
---|
128 |
|
---|
129 | -include $(OBJECTS:%.o=%.d)
|
---|
130 | ifneq (,$(PCH))
|
---|
131 | -include $(OBJDIR)/$(notdir $(PCH)).d
|
---|
132 | endif
|
---|