blob: e951b4762af6585c0e4df08579880afbb7003035 (
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.. -lcgi
default: $(EXAMPLES)
%: %.c
$(CC) $(CFLAGS) -I $(INCLUDE) $< $(LFLAGS) -o $@
clean:
rm -f $(EXAMPLES)
|