1 .PHONY: all objdir clean realclean distclean
8 TARGET_TYPE = staticlib
10 OBJ = obj/$(CONFIG).$(PLATFORM)/
14 TARGET = obj/$(CONFIG).$(PLATFORM)/$(LP)ecBootstrap$(A)
45 bootstrap/expression.c \
46 bootstrap/firstPass.c \
50 bootstrap/loadSymbols.c \
58 bootstrap/shortcuts.c \
62 # CROSS-PLATFORM MAGIC
64 include ../../../include.mk
68 CFLAGS = -fmessage-length=0 -O2 -ffast-math -m32 $(FPIC) -w \
69 -DYYTOKENTYPE -DECERE_STATIC
73 ECFLAGS = -nolinenumbers
75 LIBS = $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
84 $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
86 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
87 $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
89 $(OBJ)ast.o: bootstrap/ast.c
90 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/ast.c -o $(OBJ)ast.o
92 $(OBJ)copy.o: bootstrap/copy.c
93 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/copy.c -o $(OBJ)copy.o
95 $(OBJ)dbpass.o: bootstrap/dbpass.c
96 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/dbpass.c -o $(OBJ)dbpass.o
98 $(OBJ)ec.main.o: bootstrap/ec.main.c
99 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/ec.main.c -o $(OBJ)ec.main.o
101 $(OBJ)ecdefs.o: bootstrap/ecdefs.c
102 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/ecdefs.c -o $(OBJ)ecdefs.o
104 $(OBJ)expression.o: bootstrap/expression.c
105 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/expression.c -o $(OBJ)expression.o
107 $(OBJ)firstPass.o: bootstrap/firstPass.c
108 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/firstPass.c -o $(OBJ)firstPass.o
110 $(OBJ)freeAst.o: bootstrap/freeAst.c
111 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/freeAst.c -o $(OBJ)freeAst.o
113 $(OBJ)grammar.o: bootstrap/grammar.c
114 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/grammar.c -o $(OBJ)grammar.o
116 $(OBJ)lexer.o: bootstrap/lexer.c
117 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/lexer.c -o $(OBJ)lexer.o
119 $(OBJ)loadSymbols.o: bootstrap/loadSymbols.c
120 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/loadSymbols.c -o $(OBJ)loadSymbols.o
122 $(OBJ)output.o: bootstrap/output.c
123 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/output.c -o $(OBJ)output.o
125 $(OBJ)pass0.o: bootstrap/pass0.c
126 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass0.c -o $(OBJ)pass0.o
128 $(OBJ)pass1.o: bootstrap/pass1.c
129 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass1.c -o $(OBJ)pass1.o
131 $(OBJ)pass15.o: bootstrap/pass15.c
132 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass15.c -o $(OBJ)pass15.o
134 $(OBJ)pass16.o: bootstrap/pass16.c
135 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass16.c -o $(OBJ)pass16.o
137 $(OBJ)pass2.o: bootstrap/pass2.c
138 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass2.c -o $(OBJ)pass2.o
140 $(OBJ)pass3.o: bootstrap/pass3.c
141 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/pass3.c -o $(OBJ)pass3.o
143 $(OBJ)shortcuts.o: bootstrap/shortcuts.c
144 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/shortcuts.c -o $(OBJ)shortcuts.o
146 $(OBJ)type.o: bootstrap/type.c
147 $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/type.c -o $(OBJ)type.o
149 $(OBJ)bsl.o: ../bsl.c
150 $(CC) $(CFLAGS) $(FVISIBILITY) -c ../bsl.c -o $(OBJ)bsl.o
153 $(call rmq,$(TARGET))
154 $(call rmq,$(OBJECTS))