summaryrefslogtreecommitdiff
path: root/a6/Makefile
blob: 4efb3bcbb379f85943880ec774da20bc921504ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TEX_FLAGS=-halt-on-error -file-line-error -interaction=batchmode
TEX_NAME=au_BentBisballeNyeng_A6
CXX_FLAGS=-g -O2 -fconcepts -fcoroutines -Wall -Werror -Wextra -Wconversion -std=c++20

all: noalloc stack_new custom

noalloc: noalloc.cc Makefile
	g++ ${CXX_FLAGS} $< -o $@

stack_new: stack_new.cc Makefile
	g++ ${CXX_FLAGS} $< -o $@

custom: custom.cc Makefile
	g++ ${CXX_FLAGS} $< -o $@

pdf: ${TEX_NAME}.pdf

${TEX_NAME}.bbl: ${TEX_NAME}.bcf
	biber --onlylog $< || biber $<

${TEX_NAME}.bcf: ${TEX_NAME}.tex
	xelatex --no-pdf ${TEX_FLAGS} $<

${TEX_NAME}.pdf: ${TEX_NAME}.tex ${TEX_NAME}.bbl
#	xelatex --no-pdf ${TEX_FLAGS} $<
	xelatex ${TEX_FLAGS} $<