Took me way too long to write a makefile that works with unity builds
CC = gcc
SHELL := /usr/bin/env
.SHELLFLAGS := -S bash -c
CFLAGS = -std=c2x -Wall -Wextra -Wpedantic -pedantic-errors -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -O0
CFLAGS +=
LDLIBS +=
LDFLAGS +=
SOURCES := $(wildcard *.c)
TIMESTAMP_DIR := .timestamps
TIMESTAMPS := $(patsubst %.c,$(TIMESTAMP_DIR)/%.t,$(SOURCES))
.PHONY: all c clean
.DELETE_ON_ERROR:
.ONESHELL:
all: main
$(TIMESTAMP_DIR):
mkdir -p $(TIMESTAMP_DIR)
$(TIMESTAMPS): $(TIMESTAMP_DIR)/%.t: %.c | $(TIMESTAMP_DIR)
touch $@
main: main.c $(TIMESTAMPS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
c clean:
-rm -rvf main $(TIMESTAMP_DIR)
Slowly but surely working on vxggr again. Took a break because I ran into a concurrency problem I didn't know how to (and still don't know how to honestly) solve
DUMB SHIT 2026 EDITION 🎆🍾
Took me way too long to write a makefile that works with unity builds CC = gcc SHELL := /usr/bin/env .SHELLFLAGS := -S bash -c CFLAGS = -std=c2x -Wall -Wextra -Wpedantic -pedantic-errors -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -O0 CFLAGS += LDLIBS +=…
Note: This is because manual dependency resolution sucks and I can't figure out automatic dependency resolution so it's easier to just make the thing a unity build and write a slightly weird Makefile than bother. It's not like compilation is taking hours anyway
Forwarded from vx-underground
This media is not supported in your browser
VIEW IN TELEGRAM
+1 silly cat video for the people with the botnet DDoSing me. Very silly shenanigans
🥰1
Happy yearly defcon posting 10000 videos clogging my subscribed feed
Forwarded from 💥 40K Posting 💥 (Mátyás🇭🇺)
💥 40K Posting 💥
"We get it, it's popular."
This media is not supported in your browser
VIEW IN TELEGRAM
Interesting, a Tau utter sucker hating on Space King?
DUMB SHIT 2026 EDITION 🎆🍾
Vodka my beloved
Oops got to the major motor function loss drunkenness on accident