diff --git a/.gitignore b/.gitignore index 91b4194..13b9d67 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.out *.swp *.igc +lib/libraylib.a diff --git a/README.md b/README.md index b8b6cd9..fbcc19c 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,28 @@ Goals are: parsing an IGC file containing flight data, giving analytics about th # Dependencies -These are mainly for Raylib (the 3D library): +These are mainly for building the project, and for Raylib (the 3D graphic library): ``` sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev +sudo apt install build-essential git +``` + +You will have to compile Raylib, and then copy the archive file into igcp's `lib` directory: + +``` +git clone --depth 1 https://github.com/raysan5/raylib.git raylib +cd raylib/src/ +make PLATFORM=PLATFORM_DESKTOP + +cp libraylib.a PATH/TO/igcp/lib/ ``` # Compilation & Usage +Now you can compile igcp and use it: + ``` make ./a.out ``` - -# License - -GNU GPL v3 diff --git a/lib/.gitkeep b/lib/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lib/libraylib.a b/lib/libraylib.a deleted file mode 100644 index eaa436f..0000000 Binary files a/lib/libraylib.a and /dev/null differ diff --git a/makefile b/makefile index 351ad3a..40c5c9a 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ all: - gcc -Wall -g linkage.c igc.c main.c -I./include -L./lib -lraylib -lGL -lEGL -lGLESv2 -lm -lpthread -ldl -lrt -lX11 + gcc -Wall -g src/linkage.c src/igc.c src/main.c -I./include -L./lib -lraylib -lGL -lEGL -lGLESv2 -lm -lpthread -ldl -lrt -lX11 clean: rm a.out diff --git a/igc.c b/src/igc.c similarity index 100% rename from igc.c rename to src/igc.c diff --git a/igc.h b/src/igc.h similarity index 100% rename from igc.h rename to src/igc.h diff --git a/linkage.c b/src/linkage.c similarity index 100% rename from linkage.c rename to src/linkage.c diff --git a/linkage.h b/src/linkage.h similarity index 100% rename from linkage.h rename to src/linkage.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c