add deps and change gitignore and makefiles

This commit is contained in:
2025-08-26 17:59:18 +02:00
parent c056e12b7f
commit 9406ecc1de
6 changed files with 21 additions and 15 deletions

3
.gitignore vendored
View File

@@ -54,4 +54,5 @@ dkms.conf
*.zip
*.pdf
*.png
*.bmp
!main*

13
Makefile Normal file
View File

@@ -0,0 +1,13 @@
build:
gcc main.c bitmap.c -o main -O3
run:
make build
./main
show:
make run
feh after.bmp
convert:
magick after.bmp after.png # for showing image in pdf

View File

@@ -1,13 +1 @@
build:
gcc main.c bitmap.c -o main -O3
run:
make build
./main
show:
make run
feh after.bmp
convert:
magick after.bmp after.png # for showing image in pdf
include ../Makefile

BIN
exercise0/after.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 MiB

BIN
exercise0/main.pdf Normal file

Binary file not shown.

View File

@@ -16,8 +16,12 @@
buildInputs = with pkgs; [
gcc
gnumake
mpi
feh
imagemagick_light
typst
typstyle
zip
unzip
];
shellHook = ''
echo welcome!