tcc --help -v: cleanup

from e640ed1aeb

Also:
- cleanup -std, -O, -pthread
- tcc.h:win32: use win32-type include paths even for cross
  compilers (needed for loading tcc_predefs.h in cases)
- Makefile: simplify OSX .dylib clause
This commit is contained in:
grischka
2020-06-01 18:10:58 +02:00
parent 8fb8d88ea6
commit e7a4140d28
6 changed files with 40 additions and 105 deletions

View File

@@ -236,8 +236,9 @@ libtcc.so: $(LIBTCC_OBJ)
libtcc.so: CFLAGS+=-fPIC
libtcc.so: LDFLAGS+=-fPIC
# OSX dynamic libtcc library
libtcc.dylib: $(LIBTCC_OBJ)
$(CC) -shared -o libtcc.dylib libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o x86_64-gen.o x86_64-link.o i386-asm.o -flat_namespace
$S$(CC) -shared -o $@ $^ $(LDFLAGS)
# windows dynamic libtcc library
libtcc.dll : $(LIBTCC_OBJ)