History

make --enable-cross work properly on x86_64 merge more changes from Fedora spec file into Makefile I did a lot of reading on Makefiles. It should be a lot less hacked now that I got rid of my temporary cross-build script. I had to build i386-win32-tcc as 32 bit in order to use it to build the windows version of libtcc1.a and move that into lib directory. Still testing, but it does build windows fib.exe smoothly now and generates shard lib, libtcc.so.1.0 and test links against it.

Henry Kroll III committed 16 years ago

Commit 07eb8501 parent 1a8e7d91 file · +8 −3Browse files

Unified · Split

Makefile+8−3
@@ -183,15 +183,20 @@ libtcc_test$(EXESUF): tests/libtcc_test.c $(LIBTCCB) · 182 unmodified lines
183 $(CC) -o $@ $^ -I. $(CFLAGS) $(LIBS) $(LIBTCCL)183 $(CC) -o $@ $^ -I. $(CFLAGS) $(LIBS) $(LIBTCCL)
184ifdef CONFIG_CROSS184ifdef CONFIG_CROSS
185ifndef CONFIG_WIN32185ifndef CONFIG_WIN32
186 cp config.mak config.mak.bak
187 cp config.h config.h.bak
186 echo "ARCH=i386" >> config.mak188 echo "ARCH=i386" >> config.mak
187 make i386-win32-tcc189 echo "#undef HOST_X86_64" >> config.h
190 echo "#define HOST_I386 1" >> config.h
191 echo "CFLAGS=-O2 -g -pipe -Wall -m32" >> config.mak
192 make i386-win32-tcc
188 cp i386-win32-tcc tcc.exe193 cp i386-win32-tcc tcc.exe
189 mv libtcc1.a libtcc1.bak194 mv libtcc1.a libtcc1.bak
190 make CONFIG_WIN32=1 libtcc1.a195 make CONFIG_WIN32=1 libtcc1.a
191 mv libtcc1.a lib196 mv libtcc1.a lib
192 mv libtcc1.bak libtcc1.a197 mv libtcc1.bak libtcc1.a
193 head -n -1 config.mak > config.bak198 mv config.mak.bak config.mak
194 mv config.bak config.mak199 mv config.h.bak config.h
195endif200endif
196endif201endif
197 202

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