mirror of
https://github.com/Ty3r0X/funni-square.git
synced 2024-12-18 05:04:36 +00:00
Made Makefile correct with proper SDL paths.
Made the README more beginner friendly. Changes to be committed: modified: Makefile modified: README.md modified: src/rectangle.c Co-authored-by: Patrick Covaci <ty3r0x@chaox.ro>
This commit is contained in:
parent
c6cf239bfd
commit
961e9316f5
6
Makefile
6
Makefile
@ -3,9 +3,15 @@ include config.mk
|
|||||||
|
|
||||||
OBJ := $(SRC:.c=.o)
|
OBJ := $(SRC:.c=.o)
|
||||||
|
|
||||||
|
# MAKE sure that you have SDL2, SDL2-dev/devel, SDL2_ttf and SDL2_ttf-dev/devel installed
|
||||||
|
CFLAGS += -I/usr/include/SDL2
|
||||||
|
LDFLAGS += -lSDL2 -lSDL2_ttf
|
||||||
|
|
||||||
all: $(OBJ) $(OUT)
|
all: $(OBJ) $(OUT)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $< -c $(CFLAGS) -o "$@"
|
$(CC) $< -c $(CFLAGS) -o "$@"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) $(OUT)
|
rm -f $(OBJ) $(OUT)
|
||||||
|
|
||||||
|
36
README.md
36
README.md
@ -2,11 +2,45 @@
|
|||||||
|
|
||||||
But I uploaded it nontheless for them sweet sweet activity boxes >:)
|
But I uploaded it nontheless for them sweet sweet activity boxes >:)
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
Make sure you have the following dependencies installed on your system:
|
||||||
|
|
||||||
|
- SDL2
|
||||||
|
- SDL2-dev/devel
|
||||||
|
- SDL2_ttf
|
||||||
|
- SDL2_ttf-dev/devel
|
||||||
|
|
||||||
## How to run
|
## How to run
|
||||||
|
|
||||||
```
|
1. Clone the repository
|
||||||
|
|
||||||
|
Via HTTPS:
|
||||||
|
```bash
|
||||||
git clone https://github.com/Ty3r0X/funni-square
|
git clone https://github.com/Ty3r0X/funni-square
|
||||||
|
```
|
||||||
|
|
||||||
|
Or Via SSH:
|
||||||
|
```bash
|
||||||
|
or git@github.com:Ty3r0X/funni-square.git
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Change directory to the project folder
|
||||||
|
|
||||||
|
```bash
|
||||||
cd funni-square
|
cd funni-square
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Compile the project
|
||||||
|
|
||||||
|
MAKE sure that there are no errors during the compilation process.
|
||||||
|
|
||||||
|
```bash
|
||||||
make
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Run the project
|
||||||
|
|
||||||
|
```bash
|
||||||
./project
|
./project
|
||||||
```
|
```
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* ----------------------------------------------------------
|
/* ----------------------------------------------------------
|
||||||
* @@@@@@@ @@@ @@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@ @@@
|
* @@@@@@@ @@@ @@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@ @@@
|
||||||
* @@@@@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@@@@ @@@ @@@
|
* @@@@@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@@@@ @@@ @@@
|
||||||
|
Loading…
Reference in New Issue
Block a user