mirror of
https://github.com/LIV2/libnix.git
synced 2025-12-06 00:23:08 +00:00
remove trailing garbage (version info) from .a files, do not mix variables and functions
This commit is contained in:
parent
32ed5f843f
commit
480d298f6e
@ -3,8 +3,8 @@
|
||||
#include <inline/exec.h>
|
||||
#include <inline/dos.h>
|
||||
|
||||
int __nocommandline=1; /* Disable commandline parsing */
|
||||
int __initlibraries=0; /* Disable auto-library-opening */
|
||||
void __nocommandline(){}; /* Disable commandline parsing */
|
||||
void __initlibraries(){}; /* Disable auto-library-opening */
|
||||
|
||||
struct DosLibrary *DOSBase=NULL;
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ libm.a: subdirs $(OBJECTS2) ../../sources/math/Makefile ../../sources/math/filel
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS2)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
stdio/vfprintf.o: $(srcdir)/../nix/stdio/vfprintf.c
|
||||
$(CC) $(OPTIONS) $^ -c -o stdio/vfprintf.o
|
||||
|
||||
@ -59,4 +59,4 @@ libnix.a: subdirs $(OBJECTS) ../../sources/nix/Makefile ../../sources/nix/fileli
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -66,7 +66,7 @@ libnix13.a: subdirs $(OBJECTS2) ../../sources/nix13/Makefile ../../sources/nix13
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS2)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
amiga/misc/ArgArray.o: $(srcdir)/../amiga/misc/ArgArray.c
|
||||
$(CC) $(OPTIONS) $^ -c -o amiga/misc/ArgArray.o
|
||||
|
||||
@ -60,4 +60,4 @@ libnix20.a: subdirs $(OBJECTS) ../../sources/nix20/Makefile ../../sources/nix20/
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -51,4 +51,4 @@ libnix_main.a: $(OBJECTS) ../../sources/nix_main/Makefile
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -51,4 +51,4 @@ libnixmain.a: $(OBJECTS) ../../sources/nixmain/Makefile
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -55,4 +55,4 @@ libsocket.a: subdirs $(OBJECTS) ../../sources/socket/Makefile ../../sources/sock
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -42,4 +42,4 @@ libstack.a: $(OBJECTS) ../../sources/stack/Makefile ../../sources/stack/filelist
|
||||
-rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -22,7 +22,7 @@ OPTIONS=-I$(srcdir)/../headers -O -fomit-frame-pointer
|
||||
%.o: %.c $(SUBDIRS)
|
||||
$(CC) $(OPTIONS) -c $(filter-out $(SUBDIRS), $^) 2>&1|tee $*.err
|
||||
-if test ! -s $*.err; then rm $*.err; fi
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
.PHONY: all filelist subdirs clean veryclean
|
||||
|
||||
@ -38,31 +38,27 @@ veryclean:
|
||||
-rm *.o
|
||||
|
||||
# baserelative resident startup-code
|
||||
|
||||
nrcrt0.o: nrcrt0.S
|
||||
$(CC) -c $^
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
# large baserelative resident startup-code
|
||||
|
||||
nlrcrt0.o: nlrcrt0.S
|
||||
$(CC) -m68020 -c $^
|
||||
echo "\$$$(V)" >>$@
|
||||
# baserelative startup code
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
# baserelative startup code
|
||||
nbcrt0.o: nbcrt0.S
|
||||
$(CC) -c $^
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
# large baserelative startup code
|
||||
|
||||
nlbcrt0.o: nlbcrt0.S
|
||||
$(CC) -m68020 -c $^
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
|
||||
# normal (=large) startup code
|
||||
|
||||
ncrt0.o: ncrt0.S
|
||||
$(CC) -c $^
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\$$$(V)" >>$@
|
||||
|
||||
@ -53,4 +53,4 @@ libstubs.a: subdirs $(OBJECTS2) ../../sources/stubs/Makefile ../../sources/stubs
|
||||
rm -f $@
|
||||
$(AR) -q $@ $(OBJECTS2)
|
||||
$(RANLIB) $@
|
||||
echo "\$$$(V)" >>$@
|
||||
# echo "\\$$$(V)" >>$@
|
||||
|
||||
@ -47,6 +47,6 @@ ADD2INIT(__cpucheck,-80); /* Highest priority */
|
||||
|
||||
#else
|
||||
|
||||
int __cpucheck;
|
||||
void __cpucheck(){}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user