DUMB SHIT MISCHIEF AND MALFEASANCE EDITION
105 subscribers
2.58K photos
2.12K videos
16 files
139 links
dumb shit only
Chat: https://t.me/DUUMSHTTERS
Quote wall: https://t.me/sht_tg_says
Download Telegram
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 MISCHIEF AND MALFEASANCE 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
I aspire to be like this man
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