From cabf671e3199396780655f386215b2ed41c3e0ea Mon Sep 17 00:00:00 2001 From: Anton Gerdelan Date: Tue, 20 Aug 2024 13:20:13 +0100 Subject: [PATCH] makefiles with INC for macOS --- 01_extended_init/Makefile.osx | 2 +- 02_shaders/Makefile.osx | 2 +- 03_vertex_buffer_objects/Makefile.osx | 2 +- 04_mats_and_vecs/Makefile.osx | 2 +- 05_virtual_camera/Makefile.osx | 2 +- 06_vcam_with_quaternion/Makefile.osx | 2 +- 07_ray_picking/Makefile.osx | 2 +- 08_phong/Makefile.osx | 2 +- 09_texture_mapping/Makefile.osx | 2 +- 10_screen_capture/Makefile.osx | 2 +- 11_video_capture/Makefile.osx | 2 +- 12_debugging_shaders/Makefile.osx | 2 +- 14_multi_tex/Makefile.osx | 2 +- 16_frag_reject/Makefile.osx | 2 +- 17_alpha_blending/Makefile.osx | 2 +- 18_spotlights/Makefile.osx | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/01_extended_init/Makefile.osx b/01_extended_init/Makefile.osx index d600e6d..2ee1576 100644 --- a/01_extended_init/Makefile.osx +++ b/01_extended_init/Makefile.osx @@ -7,5 +7,5 @@ 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 788a481..4645b49 100644 --- a/02_shaders/Makefile.osx +++ b/02_shaders/Makefile.osx @@ -7,5 +7,5 @@ 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 5d6e9e2..b5f545b 100644 --- a/03_vertex_buffer_objects/Makefile.osx +++ b/03_vertex_buffer_objects/Makefile.osx @@ -7,4 +7,4 @@ 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 9328a86..10264aa 100644 --- a/04_mats_and_vecs/Makefile.osx +++ b/04_mats_and_vecs/Makefile.osx @@ -7,5 +7,5 @@ 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 72cfb25..a9131f2 100644 --- a/05_virtual_camera/Makefile.osx +++ b/05_virtual_camera/Makefile.osx @@ -7,5 +7,5 @@ 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/06_vcam_with_quaternion/Makefile.osx b/06_vcam_with_quaternion/Makefile.osx index 73a3d06..5e935f1 100644 --- a/06_vcam_with_quaternion/Makefile.osx +++ b/06_vcam_with_quaternion/Makefile.osx @@ -7,5 +7,5 @@ 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 9feed1d..9f804a5 100644 --- a/07_ray_picking/Makefile.osx +++ b/07_ray_picking/Makefile.osx @@ -7,5 +7,5 @@ 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 92764d4..8d48174 100644 --- a/08_phong/Makefile.osx +++ b/08_phong/Makefile.osx @@ -7,5 +7,5 @@ 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 495e13a..2956e24 100644 --- a/09_texture_mapping/Makefile.osx +++ b/09_texture_mapping/Makefile.osx @@ -7,5 +7,5 @@ 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 36c965d..3e10a8c 100644 --- a/10_screen_capture/Makefile.osx +++ b/10_screen_capture/Makefile.osx @@ -7,5 +7,5 @@ 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 f3308b0..f3ee784 100644 --- a/11_video_capture/Makefile.osx +++ b/11_video_capture/Makefile.osx @@ -7,5 +7,5 @@ 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 db67b0e..885a286 100644 --- a/12_debugging_shaders/Makefile.osx +++ b/12_debugging_shaders/Makefile.osx @@ -7,5 +7,5 @@ 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/14_multi_tex/Makefile.osx b/14_multi_tex/Makefile.osx index 3f188ef..502fe54 100644 --- a/14_multi_tex/Makefile.osx +++ b/14_multi_tex/Makefile.osx @@ -7,5 +7,5 @@ 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/16_frag_reject/Makefile.osx b/16_frag_reject/Makefile.osx index bc5a520..a9b971e 100644 --- a/16_frag_reject/Makefile.osx +++ b/16_frag_reject/Makefile.osx @@ -7,5 +7,5 @@ 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 1a092fa..f213cf9 100644 --- a/17_alpha_blending/Makefile.osx +++ b/17_alpha_blending/Makefile.osx @@ -7,5 +7,5 @@ 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 5c8a53e..b155a6d 100644 --- a/18_spotlights/Makefile.osx +++ b/18_spotlights/Makefile.osx @@ -7,5 +7,5 @@ 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}