blob: 60df4ff01eee7be50ee88c3d1c9ca2a93683f3c0 (
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
27
28
29
|
# Uncomment following to enable debug mode:
# DEBUG = yes
CC = g++
EXAMPLES = filter error
CPPFLAGS = -Wall -ansi -pedantic
ifeq '$(DEBUG)' 'yes'
CPPFLAGS += -g -O0
else
CPPFLAGS += -O3
endif
INCLUDE = -I../src
LFLAGS = -L.. -lxift
XENOPHAGE = ../libxift.a
default: $(EXAMPLES)
$(XENOPHAGE):
cd ..; $(MAKE)
%: %.cpp $(XENOPHAGE)
$(CC) $(CPPFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@
clean:
rm -f $(EXAMPLES)
|