-
Couldn't load subscription status.
- Fork 7
Description
I tried to build this clib2 like "make -f GNUMakefile.os4", and have immediately those kind of errors:
user@DESKTOP-3NFAB0O /amiga2/clib2-master
$ make -f GNUmakefile.os4
Assembling \033[0;33m[build/lib]\033[0m \r\t\t\t\t\t\t\t\t \033[0;31mcrt0.o\033[0m
cp -r ./build/lib/crt0.o /usr/ppc-amigaos/SDK/clib2/lib/
cp: cannot create regular file '/usr/ppc-amigaos/SDK/clib2/lib/': No such file or directory
make: *** [GNUmakefile.os4:154: build/lib/crt0.o] Error 1
IMHO, if anyone run makefile without any options, it should doing just that : only compile code. No install, not "cp -r build", etc. Pure complation of files and libs. Then if anyone wish can use "make install" or whatever. As it now it looks strange, why it tried to copy anything without being asked for , it should compile code imho :)
So my suggestion is that makefile need to be structured like this : firstly everything compiles in its own build directory, and only then, if one do "make install" copy the things. As of now it looks like it tries to compile something , and then immediately copy.
To add , Makefile also have some hardcore patches like INSTALL_PREFIX = /usr/ppc-amigaos/SDK/clib2 and SDK_INCLUDE := /usr/ppc-amigaos/SDK/include, while most of time by default it's /usr/local/amiga/ppc-amigaos. But anyway there should't be any hardcore stuff, but probabaly after compilation done, should be something like "make install /usr/albaklalasd/ppc-amigaos/" etc.
To summorize as i see it and what we need to do:
- Make makefile to only compile code when run pure "make -f Makefile". No COPY should be done.
- When we compile everything, we can install it by something like "make install", but also we should provide a path to our SDK, so it will be like
make install /usr/local/amiga/ppc-amigaos/SDK