1 .PHONY: all objdir clean realclean distclean
11 TARGET_TYPE = staticlib
35 include $(_CF_DIR)crossplatform.mk
36 include $(_CF_DIR)default.cf
38 # POST-INCLUDES VARIABLES
40 OBJ = obj/$(CONFIG).$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/
44 TARGET = obj/$(CONFIG).$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecBootstrap$(A)
75 bootstrap/expression.c \
76 bootstrap/firstPass.c \
80 bootstrap/loadSymbols.c \
88 bootstrap/shortcuts.c \
92 LIBS += $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
94 ifndef STATIC_LIBRARY_TARGET
99 $(if $(DEBUG), -g, -O2 -ffast-math) $(FORCE_32_BIT) $(FPIC) -w \
107 CECFLAGS += -cpp $(_CPP)
109 ifndef STATIC_LIBRARY_TARGET
110 OFLAGS += $(FORCE_32_BIT)
115 all: objdir $(TARGET)
118 $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
120 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
121 $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
125 $(OBJ)ast.o: bootstrap/ast.c
126 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/ast.c -o $(OBJ)ast.o
128 $(OBJ)copy.o: bootstrap/copy.c
129 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/copy.c -o $(OBJ)copy.o
131 $(OBJ)dbpass.o: bootstrap/dbpass.c
132 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/dbpass.c -o $(OBJ)dbpass.o
134 $(OBJ)ec.main.o: bootstrap/ec.main.c
135 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/ec.main.c -o $(OBJ)ec.main.o
137 $(OBJ)ecdefs.o: bootstrap/ecdefs.c
138 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/ecdefs.c -o $(OBJ)ecdefs.o
140 $(OBJ)expression.o: bootstrap/expression.c
141 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/expression.c -o $(OBJ)expression.o
143 $(OBJ)firstPass.o: bootstrap/firstPass.c
144 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/firstPass.c -o $(OBJ)firstPass.o
146 $(OBJ)freeAst.o: bootstrap/freeAst.c
147 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/freeAst.c -o $(OBJ)freeAst.o
149 $(OBJ)grammar.o: bootstrap/grammar.c
150 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/grammar.c -o $(OBJ)grammar.o
152 $(OBJ)lexer.o: bootstrap/lexer.c
153 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/lexer.c -o $(OBJ)lexer.o
155 $(OBJ)loadSymbols.o: bootstrap/loadSymbols.c
156 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/loadSymbols.c -o $(OBJ)loadSymbols.o
158 $(OBJ)output.o: bootstrap/output.c
159 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/output.c -o $(OBJ)output.o
161 $(OBJ)pass0.o: bootstrap/pass0.c
162 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass0.c -o $(OBJ)pass0.o
164 $(OBJ)pass1.o: bootstrap/pass1.c
165 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass1.c -o $(OBJ)pass1.o
167 $(OBJ)pass15.o: bootstrap/pass15.c
168 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass15.c -o $(OBJ)pass15.o
170 $(OBJ)pass16.o: bootstrap/pass16.c
171 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass16.c -o $(OBJ)pass16.o
173 $(OBJ)pass2.o: bootstrap/pass2.c
174 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass2.c -o $(OBJ)pass2.o
176 $(OBJ)pass3.o: bootstrap/pass3.c
177 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/pass3.c -o $(OBJ)pass3.o
179 $(OBJ)shortcuts.o: bootstrap/shortcuts.c
180 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/shortcuts.c -o $(OBJ)shortcuts.o
182 $(OBJ)type.o: bootstrap/type.c
183 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/type.c -o $(OBJ)type.o
185 $(OBJ)bsl.o: ../bsl.c
186 $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c ../bsl.c -o $(OBJ)bsl.o
189 $(call rmq,$(TARGET))
190 $(call rmq,$(OBJECTS))