Skip to content
Snippets Groups Projects
Commit 472c99db authored by Arni's avatar Arni
Browse files

README és makefile

parent 6f40085f
No related branches found
No related tags found
No related merge requests found
README 0 → 100644
Minesweeper2D
Leírás:
C-ben írt keresztplatformos akankereső játék.
Telepítés:
Linux & Unix:
make
Windows:
egyéni fordítás szükséges
Futtatás:
./minesweeper2d
Függöségek:
SDL 1.2
SDLgfx
\ No newline at end of file
makefile 0 → 100644
CC=gcc
CFLAGS=-c -Wall `sdl-config --cflags`
LDFLAGS=`sdl-config --libs` -lSDL_gfx -lSDL_ttf -lSDL_image -lm
SOURCES=main.c init.c colors.c label.c button.c menu.c field.c table.c input.c game.c highscore.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=minesweeper2d
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm -Rf *.o $(EXECUTABLE) @
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment