mirror of
https://github.com/pret/agbcc.git
synced 2026-04-25 07:19:40 -05:00
Fix compilation on BSD make (from pizza2004).
Long-term, this should be fixed by just requiring macOS to use GNU make (probably via setting some alias), but this change is really overdue and not having a macOS computer makes this harder to test.
This commit is contained in:
parent
1f83e3d73f
commit
5297ebf508
|
|
@ -18,8 +18,8 @@ endif
|
|||
CC1 = ../old_agbcc
|
||||
|
||||
libgcc.a: libgcc1.a libgcc2.a fp-bit.o dp-bit.o
|
||||
$(AR) -x libgcc1.a
|
||||
$(AR) -x libgcc2.a
|
||||
$(AR) -x libgcc1.a;
|
||||
$(AR) -x libgcc2.a;
|
||||
$(AR) -rc libgcc.a *.o
|
||||
|
||||
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX
|
||||
|
|
@ -66,19 +66,19 @@ libgcc2.a: libgcc2.c longlong.h
|
|||
mv tmplibgcc2.a libgcc2.a
|
||||
|
||||
fp-bit.o: fp-bit.c
|
||||
$(CPP) -undef -I ../ginclude -nostdinc -o fp-bit.i fp-bit.c
|
||||
$(CPP) -undef -I ../ginclude -nostdinc -o fp-bit.i fp-bit.c;
|
||||
$(CC1) -O2 fp-bit.i
|
||||
rm -f fp-bit.i
|
||||
bash -c 'echo -e ".text\n\t.align\t2, 0\n"' >> fp-bit.s
|
||||
$(AS) -mcpu=arm7tdmi -o fp-bit.o fp-bit.s
|
||||
$(AS) -mcpu=arm7tdmi -o fp-bit.o fp-bit.s;
|
||||
rm -f fp-bit.s
|
||||
|
||||
dp-bit.o: dp-bit.c
|
||||
$(CPP) -undef -I ../ginclude -nostdinc -o dp-bit.i dp-bit.c
|
||||
$(CPP) -undef -I ../ginclude -nostdinc -o dp-bit.i dp-bit.c;
|
||||
$(CC1) -O2 dp-bit.i
|
||||
rm -f dp-bit.i
|
||||
bash -c 'echo -e ".text\n\t.align\t2, 0\n"' >> dp-bit.s
|
||||
$(AS) -mcpu=arm7tdmi -o dp-bit.o dp-bit.s
|
||||
$(AS) -mcpu=arm7tdmi -o dp-bit.o dp-bit.s;
|
||||
rm -f dp-bit.s
|
||||
|
||||
fp-bit.c: fp-bit-base.c
|
||||
|
|
@ -94,4 +94,4 @@ dp-bit.c: fp-bit-base.c
|
|||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a *.s *.i
|
||||
rm -f *.o *.a *.s *.i
|
||||
Loading…
Reference in New Issue
Block a user