mobiground/Makefile

19 lines
378 B
Makefile
Raw Normal View History

2024-11-12 17:08:03 +05:00
CC=gcc
CFLAGS=-O1 -DDEBUG -g -ggdb -std=c23
2024-12-23 06:02:33 +05:00
LIBS=`pkg-config sdl3 --cflags --libs` -lGL -lGLEW
2024-11-12 17:08:03 +05:00
OBJ = main.o
all: mobiground
%.o: %.c # Add all .o and .c files to compiler
$(CC) -c -o $@ $< $(CFLAGS) # compile, generate, all output, prerequisite implicit rule, compile flags.
mobiground: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f *.o mobiground