summaryrefslogtreecommitdiffstats
path: root/package/fonera-mp3/src/Makefile
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-27 20:10:35 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-27 20:10:35 +0000
commite1c9572b15974ffa98eff8b8f4bd77444d44dbd9 (patch)
treee77ccd710367d8139ccc8be6145e15c42600060e /package/fonera-mp3/src/Makefile
parent45c87d131f673fa7cfa2abf68b937b50e06145c9 (diff)
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/Makefile')
-rw-r--r--package/fonera-mp3/src/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/fonera-mp3/src/Makefile b/package/fonera-mp3/src/Makefile
new file mode 100644
index 000000000..350f84855
--- /dev/null
+++ b/package/fonera-mp3/src/Makefile
@@ -0,0 +1,24 @@
+PROGS = mp3d
+
+INSTDIR = $(prefix)/usr/bin
+INSTMODE = 0755
+INSTOWNER = root
+INSTGROUP = root
+
+OBJS = mp3_main.o lib/mp3_states.o lib/mp3_common.o lib/mp3_stream.o \
+ lib/mp3_file.o lib/mp3_nix_socket.o lib/mp3_socket_parser.o \
+ lib/mp3_misc.o lib/mp3_playtime.o lib/mp3_tcp_socket.o
+
+all: $(PROGS)
+$(PROGS): $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
+ $(STRIP) $@
+
+install: $(PROGS)
+ $(INSTALL) -d $(INSTDIR)
+ $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
+
+clean:
+ rm -f $(PROGS) *.o core
+ rm -f lib/$(PROGS) lib/*.o liob/core
+