History

Detect native version from default gcc target.

Christian Jullien committed 9 years ago

Commit 98172041 parent ec6a9971 file · +9 −8Browse files

Unified · Split

win32/Makefile+9−8
@@ -3,10 +3,10 @@ · 2 unmodified lines
3# It requires Cygwin 64 and gcc to bootstrap a first tcc version which is used3# It requires Cygwin 64 and gcc to bootstrap a first tcc version which is used
4# by a second stage to compile tcc it self.4# by a second stage to compile tcc it self.
5# Generated binaries do not require cygwin to run.5# Generated binaries do not require cygwin to run.
6# You can launch 'tarball' target to build a tar.gz you can install on any Windows6# You can launch 'tarball' target to build a tar.gz you can install on any
7# machines.7# Windows machines.
8 8
9ARCH = 649ARCH = $(shell if `gcc -v 2>&1 | grep Target | grep -q x86_64`; then echo 64; else echo 32; fi)
10VERSION = $(shell cat ../VERSION)10VERSION = $(shell cat ../VERSION)
11BOOTCC = gcc11BOOTCC = gcc
12CFLAGS = -s -fno-strict-aliasing -Wno-incompatible-pointer-types -DTCC_TARGET_PE -DONE_SOURCE12CFLAGS = -s -fno-strict-aliasing -Wno-incompatible-pointer-types -DTCC_TARGET_PE -DONE_SOURCE
@@ -20,6 +20,7 @@ PREFIX = i386 · 7 unmodified lines
20endif20endif
21 21
22all: pre bootstrap libs rebuild22all: pre bootstrap libs rebuild
23 @chmod 775 *.exe
23 @ls -ls *.exe24 @ls -ls *.exe
24 25
25pre:26pre:
@@ -90,11 +91,11 @@ rebuild: · 64 unmodified lines
90 @echo Rebuild using tcc itself - default $(ARCH)bits91 @echo Rebuild using tcc itself - default $(ARCH)bits
91 @./$(PREFIX)-win32-tcc $(NATIVE) -DTCC_TARGET_PE -DONE_SOURCE -o tcc.exe ../tcc.c libtcc.dll92 @./$(PREFIX)-win32-tcc $(NATIVE) -DTCC_TARGET_PE -DONE_SOURCE -o tcc.exe ../tcc.c libtcc.dll
92 @./$(PREFIX)-win32-tcc $(NATIVE) -DTCC_TARGET_PE -DONE_SOURCE -o tiny_libmaker.exe tools/tiny_libmaker.c93 @./$(PREFIX)-win32-tcc $(NATIVE) -DTCC_TARGET_PE -DONE_SOURCE -o tiny_libmaker.exe tools/tiny_libmaker.c
93 @./tcc -m64 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -DLIBTCC_AS_DLL -o libtcc.dll -shared ../libtcc.c94 @./tcc $(NATIVE) -DTCC_TARGET_PE -DONE_SOURCE -DLIBTCC_AS_DLL -o libtcc.dll -shared ../libtcc.c
94 @./tcc -m64 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o i386-win32-tcc.exe ../tcc.c95 @./tcc -m$(ARCH) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe
95 @./tcc -m64 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tiny_libmaker32.exe tools/tiny_libmaker.c96 @./tcc -m$(ARCH) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe x86_64-win32-tcc.exe
96 @./tcc -m64 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o x86_64-win32-tcc.exe ../tcc.c97 @./tcc -m$(ARCH) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tiny_libmaker32.exe tools/tiny_libmaker.c
97 @./tcc -m64 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o tiny_libmaker64.exe tools/tiny_libmaker.c98 @./tcc -m$(ARCH) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o tiny_libmaker64.exe tools/tiny_libmaker.c
98 99
99PHONY += rebuild100PHONY += rebuild
100 101

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