Skip to content

Commit

Permalink
attempt to add brew m1 paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Gerdelan authored and Anton Gerdelan committed Aug 20, 2024
1 parent 1fd15b6 commit feb89f7
Show file tree
Hide file tree
Showing 41 changed files with 82 additions and 82 deletions.
4 changes: 2 additions & 2 deletions 00_hello_triangle/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 00_hello_triangle_gl2.1/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BIN = hellot
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

Expand Down
4 changes: 2 additions & 2 deletions 01_extended_init/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 02_shaders/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BIN = shaders
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 gl_utils.c

Expand Down
4 changes: 2 additions & 2 deletions 03_vertex_buffer_objects/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 04_mats_and_vecs/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 05_virtual_camera/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 06_vcam_with_quaternion/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 07_ray_picking/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 08_phong/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 09_texture_mapping/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 10_screen_capture/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 11_video_capture/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 12_debugging_shaders/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 13_mesh_import/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 14_multi_tex/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 15_phongtextures/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 16_frag_reject/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 17_alpha_blending/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 18_spotlights/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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

Expand Down
4 changes: 2 additions & 2 deletions 19_fog/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 20_normal_mapping/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 21_cube_mapping/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 22_geom_shaders/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 23_tessellation_shaders/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 24_gui_panels/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 25_sprite_sheets/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 26_bitmap_fonts/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 27_font_atlas/Makefile.osx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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
LIBS = -L /opt/homebrew/lib -lGLEW -lglfw
FRAMEWORKS = -framework Cocoa -framework OpenGL -framework IOKit
SRC = main.cpp maths_funcs.cpp

Expand Down
4 changes: 2 additions & 2 deletions 28_uniform_buffer_object/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 29_particle_systems/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 30_skinning_part_one/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 31_skinning_part_two/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 32_skinning_part_three/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 34_framebuffer_switch/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions 35_image_kernel/Makefile.osx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading

0 comments on commit feb89f7

Please sign in to comment.