Flavio wrote (2021-06-07):
FB> On 07/06/21 17:16, Oli -> Flavio Bessa wrote:
O>> src/cmnllib/Makefile.osx is missing. Try to copy Makefile.linux to
O>> Makefile.osx
O>> and change
O>> CC = gcc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I
O>> $(INCDIR) -Wall
O>> to
O>> CC = clang $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I
O>> $(INCDIR) -Wall
O>> I don't have an MacOS machine and cannot test it. Maybe it works,
O>> maybe it doesn't.
FB> Thanks! That helped. I copied the Makefile.osx that was under the /src
FB> directory to the /src/cmnllib directory and ran the 'make'command
FB> again:
You copied the wrong Makefile. I get the same error:
crashmail/src $ cp Makefile.linux cmnllib/
crashmail/src $ make linux
mkdir -p obj
make -C cmnllib -f Makefile.linux
make[1]: Entering directory '/tmp/crashmail/src/cmnllib'
make[1]: *** No rule to make target 'crashmail/crashmail.c', needed by 'obj/crashmail.o'. Stop.
make[1]: Leaving directory '/tmp/crashmail/src/cmnllib'
make: *** [Makefile:16: linux] Error 2
Copy src/cmnllib/Makefile.linux to src/cmnllib/Makefile.osx, change gcc to clang and try again.
---
* Origin: . (2:280/464.47)
|