summaryrefslogtreecommitdiff
path: root/Makefile
blob: d49a3bf5d3b8e5266bfba0d8bd456511db476551 (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
# Makefile for mdns-repeater

HGVERSION=$(shell hg id -i)

CFLAGS=-Wall

ifdef DEBUG
CFLAGS+= -g
else
CFLAGS+= -Os
LDFLAGS+= -s
endif

CFLAGS+= -DHGVERSION="\"${HGVERSION}\""

.PHONY: all clean

all: mdns-repeater

mdns-repeater: mdns-repeater.o

clean:
	-$(RM) *.o
	-$(RM) mdns-repeater