History

More properly propagate ONE_SOURCE.

Jean-Claude Beaudoin committed 10 years ago

Commit 08335c11 parent e037fd31 file · +8 −1Browse files

Unified · Split

Makefile+8−1
@@ -178,8 +178,14 @@ endif · 177 unmodified lines
178178
179179 all: $(PROGS) $(TCCLIBS) $(TCCDOCS)
180180
181+ifdef ONE_SOURCE
182+NATIVE_TCC_REQUISITES=tcc.o
183+else
184+NATIVE_TCC_REQUISITES=tcc.o $(LIBTCC)
185+endif
186+
181187 # Host Tiny C Compiler
182−tcc$(EXESUF): tcc.o $(LIBTCC)
188+tcc$(EXESUF): $(NATIVE_TCC_REQUISITES)
183189 $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC)
184190
185191 # Cross Tiny C Compilers
@@ -226,6 +232,7 @@ else · 40 unmodified lines
226232 LIBTCC_OBJ = libtcc.o
227233 LIBTCC_INC = $(NATIVE_FILES)
228234 libtcc.o : NATIVE_DEFINES += -DONE_SOURCE
235+tcc.o : NATIVE_DEFINES += -DONE_SOURCE
229236 endif
230237
231238 $(LIBTCC_OBJ) tcc.o : %.o : %.c $(LIBTCC_INC)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t