summaryrefslogtreecommitdiff
path: root/Makefile
blob: e9b5f0046972a27d1289ae007161d10de7cfba79 (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
BUILD := debug

cflags.debug := -Wall -o0 -g -DDEBUG=1
cflags.release := -os -s
CFLAGS := ${cflags.${BUILD}}

LIBS := -lcups

CFLAGS += -L/usr/local/lib
CFLAGS += -I/usr/local/include

FILES := cgi.c

test: main
	./main

main: clean

clean:
	rm -f ./main

%:
	$(CC) $(CFLAGS) -o $@ $(FILES) main.c $(LIBS)

..