mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 20:09:50 +01:00
39 lines
575 B
Makefile
39 lines
575 B
Makefile
|
#
|
||
|
# Makefile for tinysvcmdns
|
||
|
#
|
||
|
|
||
|
CFLAGS += -Wall -pedantic -std=gnu99
|
||
|
#CFLAGS += -g
|
||
|
CFLAGS += -O2 -DNDEBUG
|
||
|
LDLIBS = -lpthread
|
||
|
|
||
|
ifneq ($(CROSS_COMPILE),)
|
||
|
CC = gcc
|
||
|
CC := $(CROSS_COMPILE)$(CC)
|
||
|
AR := $(CROSS_COMPILE)$(AR)
|
||
|
endif
|
||
|
|
||
|
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
|
||
|
|
||
|
mdns: mdns.o
|
||
|
|
||
|
mdnsd: mdns.o mdnsd.o
|
||
|
|
||
|
testmdnsd: testmdnsd.o libtinysvcmdns.a
|
||
|
|
||
|
libtinysvcmdns.a: $(patsubst %, libtinysvcmdns.a(%), $(LIBTINYSVCMDNS_OBJS))
|
||
|
|