Files
mandiant-gopacket/Makefile
T
Jacob Paullus 160b6a4280 Initial commit
2026-04-17 14:20:41 -05:00

19 lines
331 B
Makefile

# Makefile for gopacket
CC=gcc
TOOLS=$(shell ls tools/)
all: build
build:
@mkdir -p bin/
@for tool in $(TOOLS); do \
echo "[*] Building $$tool..."; \
CGO_ENABLED=1 go build -o bin/$$tool -ldflags '-linkmode external -extldflags "-static-libgcc"' tools/$$tool/main.go; \
done
clean:
rm -rf bin/
.PHONY: all build clean