Skip to content

Instantly share code, notes, and snippets.

@harsha5500
Created July 29, 2023 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harsha5500/d3517434a18ed8dd53309ab153891ca1 to your computer and use it in GitHub Desktop.
Save harsha5500/d3517434a18ed8dd53309ab153891ca1 to your computer and use it in GitHub Desktop.
Makefile for Macos M1
# Makefile template to compile SLD2 sources on Apple m1 with compile and installed libraries
all:
arch -arm64 cc -c src/filehandler.c -I include
arch -arm64 cc -c src/main.c -I include -I /usr/local/include/SDL2
arch -arm64 cc -o hl1038 main.o filehandler.o -L /usr/local/lib -lsdl2 -lsdl2_image -lsdl2_ttf
clean:
rm filehandler.o
rm main.o
rm hl1038
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment