diff --git a/README b/README new file mode 100644 index 0000000000000000000000000000000000000000..bc6e2df25074777d57f9f2d00022f3c57e717f6b --- /dev/null +++ b/README @@ -0,0 +1,14 @@ + 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 diff --git a/makefile b/makefile new file mode 100644 index 0000000000000000000000000000000000000000..45aeaa1d1ae966ab22ed5af77171fa9c7a5b3771 --- /dev/null +++ b/makefile @@ -0,0 +1,16 @@ +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