summaryrefslogtreecommitdiff
path: root/example/makefile
blob: 5255f5b170388eaa09f0e373ee372275f1643bc4 (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
# Uncomment following to enable debug mode:
# DEBUG    = yes

CC       = g++
EXAMPLES = plain_to_html

CFLAGS   = -Wall
ifeq '$(DEBUG)' 'yes'
CFLAGS  += -g -O0
else
CFLAGS  += -O3
endif

INCLUDE  = -I ../src
LFLAGS   = -L.. -ltexo


default: $(EXAMPLES)

%: %.cpp
	$(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@

clean:
	rm -f $(EXAMPLES)