Initial commit of Makefile
commit
d4582daae1
@ -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;
|
||||
}
|
Loading…
Reference in New Issue