############################################################################### .ONESHELL: ############################################################################### ATT = $(EXE:=.att) DIR = ../antipatron EXE = $(sort $(notdir $(basename $(wildcard $(DIR)/*.c $(DIR)/*.cc)))) EXP = $(shell gcc -v |& grep -q 'gcc versi.n 16' && echo '-fdiagnostics-add-output=experimental-html') ############################################################################### vpath %.c $(DIR) vpath %.cc $(DIR) ############################################################################### CFLAGS = -g -Og -fanalyzer $(EXP) -pthread -std=c11 -Wall -Wextra -Wpedantic CXXFLAGS = $(CFLAGS:c11=c++20) ############################################################################### all: exe att: $(ATT) clean: $(SRC) -rm -f $(ATT) $(EXE) *.html core* *~ -symlinks -dr . exe: $(EXE) ############################################################################### %.att: % objdump -C -d $< > $@ ############################################################################### .PHONY: all att clean exe ###############################################################################