2011-04-10 13:51:52 +00:00
|
|
|
#
|
|
|
|
# Makefile for tinysvcmdns
|
|
|
|
#
|
|
|
|
|
|
|
|
CFLAGS += -Wall -pedantic -std=gnu99
|
2020-07-23 10:22:32 +00:00
|
|
|
CFLAGS += -g
|
|
|
|
CFLAGS += -O2
|
|
|
|
#CFLAGS += -DNDEBUG
|
2011-04-10 13:51:52 +00:00
|
|
|
LDLIBS = -lpthread
|
|
|
|
|
2012-12-11 15:39:24 +00:00
|
|
|
ifneq ($(CROSS_COMPILE),)
|
|
|
|
CC = gcc
|
|
|
|
CC := $(CROSS_COMPILE)$(CC)
|
|
|
|
AR := $(CROSS_COMPILE)$(AR)
|
|
|
|
endif
|
|
|
|
|
2011-04-10 13:51:52 +00:00
|
|
|
BIN=testmdnsd
|
|
|
|
|
|
|
|
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o
|
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
all: $(BIN) libtinysvcmdns.a
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(RM) *.o
|
|
|
|
-$(RM) *.bin
|
|
|
|
-$(RM) mdns
|
|
|
|
-$(RM) $(BIN)
|
|
|
|
-$(RM) libtinysvcmdns.a
|
|
|
|
|
2020-07-23 10:22:32 +00:00
|
|
|
mdns.o: mdns.h
|
2011-04-10 13:51:52 +00:00
|
|
|
|
2020-07-23 10:22:32 +00:00
|
|
|
mdnsd.o: mdns.h mdnsd.h
|
|
|
|
|
|
|
|
testmdnsd.o: mdnsd.h
|
2011-04-10 13:51:52 +00:00
|
|
|
|
|
|
|
testmdnsd: testmdnsd.o libtinysvcmdns.a
|
|
|
|
|
|
|
|
libtinysvcmdns.a: $(patsubst %, libtinysvcmdns.a(%), $(LIBTINYSVCMDNS_OBJS))
|
|
|
|
|
2020-07-23 10:22:32 +00:00
|
|
|
mdnsd: testmdnsd
|
|
|
|
strip -o $@ $<
|
|
|
|
|