mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
Makefile: Use the .exe extension only on Windows for the c2str helper program
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
This commit is contained in:
4
Makefile
4
Makefile
@@ -238,7 +238,7 @@ endif
|
|||||||
|
|
||||||
# convert "include/tccdefs.h" to "tccdefs_.h"
|
# convert "include/tccdefs.h" to "tccdefs_.h"
|
||||||
%_.h : include/%.h conftest.c
|
%_.h : include/%.h conftest.c
|
||||||
$S$(CC) -DC2STR $(filter %.c,$^) -o c2str.exe && ./c2str.exe $< $@
|
$S$(CC) -DC2STR $(filter %.c,$^) -o c2str$(EXESUF) && ./c2str$(EXESUF) $< $@
|
||||||
|
|
||||||
# target specific object rule
|
# target specific object rule
|
||||||
$(X)%.o : %.c $(LIBTCC_INC)
|
$(X)%.o : %.c $(LIBTCC_INC)
|
||||||
@@ -255,7 +255,7 @@ tcc$(EXESUF): tcc.o $(LIBTCC)
|
|||||||
# Cross Tiny C Compilers
|
# Cross Tiny C Compilers
|
||||||
# (the TCCDEFS_H dependency is only necessary for parallel makes,
|
# (the TCCDEFS_H dependency is only necessary for parallel makes,
|
||||||
# ala 'make -j x86_64-tcc i386-tcc tcc', which would create multiple
|
# ala 'make -j x86_64-tcc i386-tcc tcc', which would create multiple
|
||||||
# c2str.exe and tccdefs_.h files in parallel, leading to access errors.
|
# c2str and tccdefs_.h files in parallel, leading to access errors.
|
||||||
# This forces it to be made only once. Make normally tracks multiple paths
|
# This forces it to be made only once. Make normally tracks multiple paths
|
||||||
# to the same goals and only remakes it once, but that doesn't work over
|
# to the same goals and only remakes it once, but that doesn't work over
|
||||||
# sub-makes like in this target)
|
# sub-makes like in this target)
|
||||||
|
|||||||
Reference in New Issue
Block a user