I'm very new to Makefiles and I try to migrate this Makefile written for Linux (make) to a windows environment (nmake). I did not write this file so obviously I'm also trying to figure out the meaning of those lines.
Any chance you'd help me with the "translation" ?
DIR = src
BIN_PATH_DEST = /usr/local/bin
LIB_PATH_DEST = /usr/local/libs
CFLAGS = -DDISPLAY_TIME -DWRITE_TXT_FILES -DDISPLAY_BOUNDINGBOX
libs/libenvis3D_co.a:
cd $(DIR); make CFLAGS="$(CFLAGS)" ../libs/libenvis3D_co.a
bin/geobox_envis3D_co: main3D_co.c libs/libenvis3D_co.a
gcc -Wall $(CFLAGS) main3D_co.c libs/libenvis3D_co.a -lm -llapack -o bin/geobox_envis3D_co
install3D_co: bin/geobox_envis3D_co
cd $(DIR); make CFLAGS="$(CFLAGS)" ../libs/libenvis3D_co.a
make bin/geobox_envis3D_co
cp bin/geobox_envis3D_co $(BIN_PATH_DEST)
clean:
cd $(DIR); make clean
I also tried to download and use GNU make as described in this page : How to run a makefile in Windows? but I'm being throw the error :
C:\users\...>make -f Makefile
cd src; make CFLAGS="-DDISPLAY_TIME -DWRITE_TXT_FILES -DDISPLAY_BOUNDINGBOX" ../libs/libenvis3D_co.a
Le chemin d’accès spécifié est introuvable. (path to file not found).
make: *** [libs/libenvis3D_co.a] Erreur 1
Thanks for your input and help !