summaryrefslogtreecommitdiff
path: root/example/makefile
blob: 39d4db71f7641a6e5b7c2fcd593c85145d53aeec (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 filter_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)