blob: ecd7bc9b33354519cc6df8ce30f46616782052ee (
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 = gcc
EXAMPLES = append cookie upload
CFLAGS = -xc -ansi -pedantic -Wall
ifeq '$(DEBUG)' 'yes'
CFLAGS += -g -O0
else
CFLAGS += -O3
endif
INCLUDE = ../src
LFLAGS = -L.. -lmagi
default: $(EXAMPLES)
%: %.c
$(CC) $(CFLAGS) -I $(INCLUDE) $< $(LFLAGS) -o $@
clean:
rm -f $(EXAMPLES)
|