Initial commit of Makefile

main
noah metz 2024-01-07 01:01:57 -07:00
commit d4582daae1
3 changed files with 20 additions and 0 deletions

2
.gitignore vendored

@ -0,0 +1,2 @@
spacegame
*.o

@ -0,0 +1,11 @@
CFLAGS = -I/opt/homebrew/include -O2 -Wall -Wextra
LDFLAGS = -L/opt/homebrew/lib -lglfw -lvulkan -ldl
CC = gcc
SOURCES = $(wildcard $(SRC)/*.c)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
spacegame: src/main.o
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)

@ -0,0 +1,7 @@
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
int main(int argc, char **argv) {
return 0;
}