makefile 915 B

123456789101112131415161718192021
  1. K=${HOME}/K/ngnk/k
  2. RAYLIB=${HOME}/raylib/raylib/src
  3. OPTINC=/opt/local/include
  4. OPTLIB=/opt/local/lib
  5. 0:libsqll.dylib libmat.dylib libdraw.dylib libray.dylib
  6. libsqll.dylib:sqlite/sqlite.c
  7. $(CC) -I$K -L$K -I${OPTINC} -L${OPTLIB} -dynamiclib -install_name $@ -g -fPIC $^ -o $@ -undefined dynamic_lookup -lsqlite3
  8. libmat.dylib:mat/mat.c
  9. $(CC) -I$K -L$K -L${OPTLIB}/lapack -rpath ${OPTLIB}/gcc12 -dynamiclib -install_name $@ -g -fPIC $^ -o $@ -undefined dynamic_lookup -llapacke
  10. libdraw.dylib:draw/draw.c
  11. $(CC) -I$K -I${OPTINC}/cairo -L$K -L${OPTLIB} -dynamiclib -install_name $@ -g -fPIC $^ -o $@ -undefined dynamic_lookup -lcairo
  12. libray.dylib:ray/ray.c
  13. $(CC) -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL -I$K -I${RAYLIB} -L$K -L${RAYLIB} -dynamiclib -install_name $@ -g -fPIC $^ -o $@ -undefined dynamic_lookup -lraylib
  14. c:
  15. rm -rf libsqll* libmat* libdraw* libray*