diff --git a/00_hello_triangle/Makefile.osx b/00_hello_triangle/Makefile.osx index cfb9504..cdd16ac 100644 --- a/00_hello_triangle/Makefile.osx +++ b/00_hello_triangle/Makefile.osx @@ -1,8 +1,8 @@ BIN = hellot CC = clang FLAGS = -std=c99 -DAPPLE -Wall -pedantic -Wextra -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.c diff --git a/00_hello_triangle_gl2.1/Makefile.osx b/00_hello_triangle_gl2.1/Makefile.osx index 096787e..3311520 100644 --- a/00_hello_triangle_gl2.1/Makefile.osx +++ b/00_hello_triangle_gl2.1/Makefile.osx @@ -1,8 +1,8 @@ BIN = hellot CC = clang -FLAGS = -std=c99 -DAPPLE -Wall -pedantic -mmacosx-version-min=10.5 -arch x86_64 -fmessage-length=0 -UGLFW_CDECL -fprofile-arcs -ftest-coverage -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +FLAGS = -std=c99 -DAPPLE -Wall -pedantic +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.c diff --git a/01_extended_init/Makefile.osx b/01_extended_init/Makefile.osx index b493f51..2ee1576 100644 --- a/01_extended_init/Makefile.osx +++ b/01_extended_init/Makefile.osx @@ -1,11 +1,11 @@ BIN = extinit CC = clang FLAGS = -std=c99 -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.c all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/02_shaders/Makefile.osx b/02_shaders/Makefile.osx index e114515..4645b49 100644 --- a/02_shaders/Makefile.osx +++ b/02_shaders/Makefile.osx @@ -1,11 +1,11 @@ BIN = shaders CC = clang -FLAGS = -std=c99 -DAPPLE -Wall -pedantic -mmacosx-version-min=10.5 -arch x86_64 -fmessage-length=0 -UGLFW_CDECL -fprofile-arcs -ftest-coverage -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +FLAGS = -std=c99 -DAPPLE -Wall -pedantic +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.c gl_utils.c all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/03_vertex_buffer_objects/Makefile.osx b/03_vertex_buffer_objects/Makefile.osx index d1361ab..b5f545b 100644 --- a/03_vertex_buffer_objects/Makefile.osx +++ b/03_vertex_buffer_objects/Makefile.osx @@ -1,10 +1,10 @@ BIN = vbuffs CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/04_mats_and_vecs/Makefile.osx b/04_mats_and_vecs/Makefile.osx index 2e13e5b..10264aa 100644 --- a/04_mats_and_vecs/Makefile.osx +++ b/04_mats_and_vecs/Makefile.osx @@ -1,11 +1,11 @@ BIN = matsvecs CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/05_virtual_camera/Makefile.osx b/05_virtual_camera/Makefile.osx index 59345a5..a9131f2 100644 --- a/05_virtual_camera/Makefile.osx +++ b/05_virtual_camera/Makefile.osx @@ -1,11 +1,11 @@ BIN = vcam CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp maths_funcs.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/05_virtual_camera/main.cpp b/05_virtual_camera/main.cpp index fdd8917..132e74b 100644 --- a/05_virtual_camera/main.cpp +++ b/05_virtual_camera/main.cpp @@ -100,7 +100,7 @@ int main() { if ( GL_TRUE != params ) { fprintf( stderr, "ERROR: could not link shader programme GL index %i\n", shader_programme ); print_programme_info_log( shader_programme ); - return false; + return 1; } /*--------------------------create camera matrices----------------------------*/ diff --git a/06_vcam_with_quaternion/Makefile.osx b/06_vcam_with_quaternion/Makefile.osx index 86b5fac..5e935f1 100644 --- a/06_vcam_with_quaternion/Makefile.osx +++ b/06_vcam_with_quaternion/Makefile.osx @@ -1,11 +1,11 @@ BIN = quats CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp maths_funcs.cpp obj_parser.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/07_ray_picking/Makefile.osx b/07_ray_picking/Makefile.osx index 83d4d5e..9f804a5 100644 --- a/07_ray_picking/Makefile.osx +++ b/07_ray_picking/Makefile.osx @@ -1,11 +1,11 @@ BIN = raypick CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp maths_funcs.cpp obj_parser.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/08_phong/Makefile.osx b/08_phong/Makefile.osx index 711f734..8d48174 100644 --- a/08_phong/Makefile.osx +++ b/08_phong/Makefile.osx @@ -1,11 +1,11 @@ BIN = phong CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/09_texture_mapping/Makefile.osx b/09_texture_mapping/Makefile.osx index b1ec5bb..2956e24 100644 --- a/09_texture_mapping/Makefile.osx +++ b/09_texture_mapping/Makefile.osx @@ -1,11 +1,11 @@ BIN = texmap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/10_screen_capture/Makefile.osx b/10_screen_capture/Makefile.osx index 2f433a1..3e10a8c 100644 --- a/10_screen_capture/Makefile.osx +++ b/10_screen_capture/Makefile.osx @@ -1,11 +1,11 @@ BIN = scrcap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/11_video_capture/Makefile.osx b/11_video_capture/Makefile.osx index 25fee1e..f3ee784 100644 --- a/11_video_capture/Makefile.osx +++ b/11_video_capture/Makefile.osx @@ -1,11 +1,11 @@ BIN = vidcap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/12_debugging_shaders/Makefile.osx b/12_debugging_shaders/Makefile.osx index 019558c..885a286 100644 --- a/12_debugging_shaders/Makefile.osx +++ b/12_debugging_shaders/Makefile.osx @@ -1,11 +1,11 @@ BIN = debugshdrs CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/13_mesh_import/Makefile.osx b/13_mesh_import/Makefile.osx index 95b2405..8beef05 100644 --- a/13_mesh_import/Makefile.osx +++ b/13_mesh_import/Makefile.osx @@ -1,8 +1,8 @@ BIN = meshimp CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/14_multi_tex/Makefile.osx b/14_multi_tex/Makefile.osx index bdbcb44..502fe54 100644 --- a/14_multi_tex/Makefile.osx +++ b/14_multi_tex/Makefile.osx @@ -1,11 +1,11 @@ BIN = multitex CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/15_phongtextures/Makefile.osx b/15_phongtextures/Makefile.osx index 92776ba..d139145 100644 --- a/15_phongtextures/Makefile.osx +++ b/15_phongtextures/Makefile.osx @@ -1,8 +1,8 @@ BIN = phongtex CC = clang++ -FLAGS = -DAPPLE -Wall -pedantic -std=c++11 +FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -I/opt/homebrew/include INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/16_frag_reject/Makefile.osx b/16_frag_reject/Makefile.osx index 232610b..a9b971e 100644 --- a/16_frag_reject/Makefile.osx +++ b/16_frag_reject/Makefile.osx @@ -1,11 +1,11 @@ BIN = fragrej CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/17_alpha_blending/Makefile.osx b/17_alpha_blending/Makefile.osx index 9a1e624..f213cf9 100644 --- a/17_alpha_blending/Makefile.osx +++ b/17_alpha_blending/Makefile.osx @@ -1,11 +1,11 @@ BIN = alphablend CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/18_spotlights/Makefile.osx b/18_spotlights/Makefile.osx index 17fa884..b155a6d 100644 --- a/18_spotlights/Makefile.osx +++ b/18_spotlights/Makefile.osx @@ -1,11 +1,11 @@ BIN = spotlights CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp all: - ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${LIBS} + ${CC} ${FLAGS} ${FRAMEWORKS} -o ${BIN} ${SRC} ${INC} ${LIBS} diff --git a/19_fog/Makefile.osx b/19_fog/Makefile.osx index 982274a..d3ca35b 100644 --- a/19_fog/Makefile.osx +++ b/19_fog/Makefile.osx @@ -1,8 +1,8 @@ BIN = fog CC = clang++ -FLAGS = -DAPPLE -Wall -pedantic -std=c++11 +FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -I/opt/homebrew/include INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/20_normal_mapping/Makefile.osx b/20_normal_mapping/Makefile.osx index 34e53e2..07b3138 100644 --- a/20_normal_mapping/Makefile.osx +++ b/20_normal_mapping/Makefile.osx @@ -1,8 +1,8 @@ BIN = nmap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp -std=c++11 +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp -std=c++11 FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/21_cube_mapping/Makefile.osx b/21_cube_mapping/Makefile.osx index 788e4b4..895f8ea 100644 --- a/21_cube_mapping/Makefile.osx +++ b/21_cube_mapping/Makefile.osx @@ -1,8 +1,8 @@ BIN = cubemap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/22_geom_shaders/Makefile.osx b/22_geom_shaders/Makefile.osx index 241cf87..29d6dc0 100644 --- a/22_geom_shaders/Makefile.osx +++ b/22_geom_shaders/Makefile.osx @@ -1,8 +1,8 @@ BIN = geomsh CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp diff --git a/23_tessellation_shaders/Makefile.osx b/23_tessellation_shaders/Makefile.osx index 0048d36..c1c2dfa 100644 --- a/23_tessellation_shaders/Makefile.osx +++ b/23_tessellation_shaders/Makefile.osx @@ -1,8 +1,8 @@ BIN = tess CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp diff --git a/24_gui_panels/Makefile.osx b/24_gui_panels/Makefile.osx index 116043e..37a0398 100644 --- a/24_gui_panels/Makefile.osx +++ b/24_gui_panels/Makefile.osx @@ -1,8 +1,8 @@ BIN = overlays CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp diff --git a/25_sprite_sheets/Makefile.osx b/25_sprite_sheets/Makefile.osx index 200908b..40ddc3a 100644 --- a/25_sprite_sheets/Makefile.osx +++ b/25_sprite_sheets/Makefile.osx @@ -1,8 +1,8 @@ BIN = sprites CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp diff --git a/26_bitmap_fonts/Makefile.osx b/26_bitmap_fonts/Makefile.osx index b0ed7d6..b766040 100644 --- a/26_bitmap_fonts/Makefile.osx +++ b/26_bitmap_fonts/Makefile.osx @@ -1,8 +1,8 @@ BIN = fonts CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp diff --git a/27_font_atlas/Makefile.osx b/27_font_atlas/Makefile.osx index 68a6b51..fe968c3 100644 --- a/27_font_atlas/Makefile.osx +++ b/27_font_atlas/Makefile.osx @@ -1,14 +1,14 @@ CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -I/usr/local/include/freetype2/ -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/usr/local/include/freetype2/ -I/opt/homebrew/include -I/opt/homebrew/include/freetype2/ +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp all: generator viewer generator: - ${CC} ${FLAGS} -o generate generator_main.cpp ${INC} -lfreetype + ${CC} ${FLAGS} -o generate generator_main.cpp ${INC} -L /opt/homebrew/lib -lfreetype viewer: ${CC} ${FLAGS} ${FRAMEWORKS} -o view viewer_main.cpp maths_funcs.cpp ${INC} ${LIBS} diff --git a/28_uniform_buffer_object/Makefile.osx b/28_uniform_buffer_object/Makefile.osx index 788e4b4..895f8ea 100644 --- a/28_uniform_buffer_object/Makefile.osx +++ b/28_uniform_buffer_object/Makefile.osx @@ -1,8 +1,8 @@ BIN = cubemap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/29_particle_systems/Makefile.osx b/29_particle_systems/Makefile.osx index ad74ee1..aedb9f8 100644 --- a/29_particle_systems/Makefile.osx +++ b/29_particle_systems/Makefile.osx @@ -1,8 +1,8 @@ BIN = particles CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/30_skinning_part_one/Makefile.osx b/30_skinning_part_one/Makefile.osx index e7d84b1..cd7fbc2 100644 --- a/30_skinning_part_one/Makefile.osx +++ b/30_skinning_part_one/Makefile.osx @@ -1,8 +1,8 @@ BIN = skin CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/31_skinning_part_two/Makefile.osx b/31_skinning_part_two/Makefile.osx index e7d84b1..cd7fbc2 100644 --- a/31_skinning_part_two/Makefile.osx +++ b/31_skinning_part_two/Makefile.osx @@ -1,8 +1,8 @@ BIN = skin CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/32_skinning_part_three/Makefile.osx b/32_skinning_part_three/Makefile.osx index e7d84b1..cd7fbc2 100644 --- a/32_skinning_part_three/Makefile.osx +++ b/32_skinning_part_three/Makefile.osx @@ -1,8 +1,8 @@ BIN = skin CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -std=c++11 -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw -lassimp +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw -lassimp FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/34_framebuffer_switch/Makefile.osx b/34_framebuffer_switch/Makefile.osx index fa60477..7397806 100644 --- a/34_framebuffer_switch/Makefile.osx +++ b/34_framebuffer_switch/Makefile.osx @@ -1,8 +1,8 @@ BIN = fbuffer CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/35_image_kernel/Makefile.osx b/35_image_kernel/Makefile.osx index f498f5c..1c94bcc 100644 --- a/35_image_kernel/Makefile.osx +++ b/35_image_kernel/Makefile.osx @@ -1,8 +1,8 @@ BIN = kernel CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/36_colour_picking/Makefile.osx b/36_colour_picking/Makefile.osx index 33291f0..a8144bf 100644 --- a/36_colour_picking/Makefile.osx +++ b/36_colour_picking/Makefile.osx @@ -1,8 +1,8 @@ BIN = pick CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/37_deferred_shading/Makefile.osx b/37_deferred_shading/Makefile.osx index c0a0064..1b96a90 100644 --- a/37_deferred_shading/Makefile.osx +++ b/37_deferred_shading/Makefile.osx @@ -1,8 +1,8 @@ BIN = deferred CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp obj_parser.cpp diff --git a/38_texture_shadows/Makefile.osx b/38_texture_shadows/Makefile.osx index 62c2b2a..396c5bc 100644 --- a/38_texture_shadows/Makefile.osx +++ b/38_texture_shadows/Makefile.osx @@ -1,8 +1,8 @@ BIN = shads CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp gl_utils.cpp obj_parser.cpp maths_funcs.cpp diff --git a/39_texture_mapping_srgb/Makefile.osx b/39_texture_mapping_srgb/Makefile.osx index 7ed447c..26a8b9b 100644 --- a/39_texture_mapping_srgb/Makefile.osx +++ b/39_texture_mapping_srgb/Makefile.osx @@ -1,8 +1,8 @@ BIN = texmap CC = clang++ FLAGS = -DAPPLE -Wall -pedantic -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.cpp maths_funcs.cpp gl_utils.cpp diff --git a/41_shader_hot_reload/Makefile.osx b/41_shader_hot_reload/Makefile.osx index ac9cf02..c22d4d4 100644 --- a/41_shader_hot_reload/Makefile.osx +++ b/41_shader_hot_reload/Makefile.osx @@ -1,8 +1,8 @@ BIN = hotreload CC = clang -FLAGS = -DAPPLE -Wall -pedantic -mmacosx-version-min=10.5 -arch x86_64 -fmessage-length=0 -UGLFW_CDECL -fprofile-arcs -ftest-coverage -INC = -I/sw/include -I/usr/local/include -LIBS = -lGLEW -lglfw +FLAGS = -DAPPLE -Wall -pedantic +INC = -I/sw/include -I/usr/local/include -I/opt/homebrew/include +LIBS = -L /opt/homebrew/lib -lGLEW -lglfw FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit SRC = main.c