mobiground/Makefile

19 lines
366 B
Makefile
Raw Normal View History

2024-11-12 17:08:03 +05:00
CC=gcc
CFLAGS=-O1 -DDEBUG -g -ggdb -std=c23
LIBS=`pkg-config sdl3 --cflags --libs`
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