aboutsummaryrefslogtreecommitdiffstats
path: root/package/fonera-mp3/src/cli/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2007-08-27 20:10:35 +0000
committerJohn Crispin <blogic@openwrt.org>2007-08-27 20:10:35 +0000
commita2c409cda27b6aaae7dc34759ba2c8285ddd01d3 (patch)
treee77ccd710367d8139ccc8be6145e15c42600060e /package/fonera-mp3/src/cli/Makefile
parent37266a51f1289f940d571c0871d17dfbe76f7aed (diff)
downloadupstream-a2c409cda27b6aaae7dc34759ba2c8285ddd01d3.tar.gz
upstream-a2c409cda27b6aaae7dc34759ba2c8285ddd01d3.tar.bz2
upstream-a2c409cda27b6aaae7dc34759ba2c8285ddd01d3.zip
added libjson-c. added driver, webinterface and userspace daemon for the
fonera mp3-hack git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8509 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/fonera-mp3/src/cli/Makefile')
-rw-r--r--package/fonera-mp3/src/cli/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/fonera-mp3/src/cli/Makefile b/package/fonera-mp3/src/cli/Makefile
new file mode 100644
index 0000000000..e6aa0df92f
--- /dev/null
+++ b/package/fonera-mp3/src/cli/Makefile
@@ -0,0 +1,26 @@
+
+PROGS = mplay
+
+INSTDIR = $(prefix)/usr/bin
+INSTMODE = 0755
+INSTOWNER = root
+INSTGROUP = root
+
+OBJS = main.o
+
+all: $(PROGS)
+$(PROGS):
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o mplay main.c
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o mplay_tcp main_tcp.c
+ gcc -o mplay_tcp_native main_tcp.c
+ $(STRIP) mplay
+ $(STRIP) mplay_tcp
+
+install: $(PROGS)
+ $(INSTALL) -d $(INSTDIR)
+ $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
+ $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS)_tcp $(INSTDIR)
+
+clean:
+ rm -f $(PROGS) *.o core
+