I'm transferring to a Windows computer, and need to run my Makefile written on Linux to create a library.
HEADER=/usr/include
INCLUDEDIR=include
LIB_NAME=libpce.so
SO_NAME=$(LIB_NAME).3.2
REAL_NAME=$(SO_NAME).5
SHARED_LIB=bin/$(REAL_NAME)
mkdir $(HEADER)/libpce
cp $(INCLUDEDIR)/pce.h $(HEADER)/libpce
chmod 644 $(HEADER)/libpce/pce.h
cp $(SHARED_LIB) /usr/lib/
ln -f -s $(SO_NAME) /usr/lib/$(LIB_NAME)
chmod 644 /usr/lib/$(REAL_NAME)
ldconfig
The output of running it through a cygwin terminal on windows gives an error as ldconfig is not defined, so I tried running them without the ldconfig command at the end.
Then when I need to run my other Makefile to compile my code with argument -lpce, it says -lpce is not defined. I feel like ldconfig was essential, but I'm not able to run it on Windows.
Is there any way to execute this command on Windows? Is this the problem, or could it potentially be an issue with the /usr/lib/ paths?