Skip to content
Snippets Groups Projects
Commit f37624c1 authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

makefile

parent 873b91af
No related branches found
No related tags found
No related merge requests found
{
"name":"Minesweeper2D",
"files":[{"git":1}]
"build":"make"
}
\ No newline at end of file
makefile 0 → 100644
BINARY = MineSweeper2D
OBJECTS = main.o button.o colors.o field.o game.o highscore.o init.o input.o label.o menu.o table.o sound.o settings.o
HEADERS = button.h colors.h enums.h field.h game.h highscore.h init.h input.h label.h menu.h table.h sound.h settings.h
CC = gcc
CFLAGS = -O2 `sdl-config --cflags`
LDFLAGS = -lm `sdl-config --libs` -lSDL_ttf -lSDL_gfx -lSDL_image -lSDL_mixer
.PHONY: all clean
all: $(BINARY)
clean:
rm -f $(BINARY) $(OBJECTS)
$(BINARY): $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $@
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment