ATT = $(EXE:=.att) EXE = $(basename $(SRC)) SRC = $(filter-out $(wildcard server*.cc),$(wildcard *.cc)) CXXFLAGS = -g -march=native -O3 -Wall all: exe -@find -mindepth 2 -maxdepth 2 -name makefile -execdir make -s \; att: $(ATT) exe: $(EXE) clean: -rm -fv $(ATT) $(EXE) *~ -find -mindepth 2 -maxdepth 2 -name makefile -execdir make $@ \; %.att: % objdump -Cd $< > $@ .PHONY: all att clean exe