tools: netinfo

This commit is contained in:
Matheus
2026-04-01 16:47:11 -03:00
parent a48edb99be
commit c46634fb07
5 changed files with 71 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
.phony: all install
CC=x86_64-astral-gcc
LD=x86_64-astral-gcc
all: netinfo
install:
mkdir -p "$(DESTDIR)/$(PREFIX)/sbin/"
cp netinfo "$(DESTDIR)/$(PREFIX)/sbin/netinfo"
netinfo: main.o
$(LD) $(LDFLAGS) -g -o $@ $^
main.o: main.c
$(CC) -c $(CFLAGS) -g -o $@ $<