consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
all: build run
zip:
zip naloga.zip main.c Makefile
build: main.o
ld -m elf_i386 main.o \
/usr/lib32/crt1.o \
/usr/lib32/crti.o \
/usr/lib32/crtn.o \
-dynamic-linker \
/usr/lib32/ld-linux.so.2 \
-lc -o hello \
run: hello
./hello
clean:
rm -f hello main.i main.s main.o
build_i: main.c
cpp -m32 main.c -o main.i
build_s: main.i
gcc -S -m32 main.i -o main.s
build_o: main.s
as -32 main.s -o main.o

View File

@@ -0,0 +1,7 @@
#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}