Added service file and package generation
This commit is contained in:
8
Makefile
8
Makefile
@@ -21,7 +21,7 @@ BIN=testmdnsd
|
||||
|
||||
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean opkg
|
||||
|
||||
all: $(BIN) libtinysvcmdns.a
|
||||
|
||||
@@ -44,4 +44,10 @@ libtinysvcmdns.a: $(patsubst %, libtinysvcmdns.a(%), $(LIBTINYSVCMDNS_OBJS))
|
||||
|
||||
mdnsd: testmdnsd
|
||||
strip -o $@ $<
|
||||
install -C -D -p mdnsd sbin/
|
||||
|
||||
opkg: mdnsd $(wildcard opkg/CONTROL/*) etc/init.d/S80mdnsd
|
||||
install -D -p mdnsd opkg/sbin
|
||||
install -D -p etc/init.d/S80mdnsd opkg/etc/init.d/
|
||||
opkg-pack opkg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user