Adding my library to make code clean

This commit is contained in:
synt-xerror
2026-02-13 10:56:06 -03:00
parent 3de70e9893
commit 5eaa8f8822
3 changed files with 92 additions and 2 deletions

View File

@@ -3,10 +3,12 @@ LDFLAGS := $(shell pkg-config --libs glib-2.0)
HOME := $($HOME)
task:
gcc task.c $(CFLAGS) -o task $(LDFLAGS)
gcc -c toybox.c -o toybox.o
ar rcs libtoybox.a toybox.o
gcc task.c -L. -ltoybox $(CFLAGS) -o task $(LDFLAGS)
clean:
rm task
rm -f task libtoybox.a toybox.o
install:
mv task /usr/local/bin