summaryrefslogtreecommitdiffstats
path: root/package/fonera-mp3/src/Makefile
diff options
context:
space:
mode:
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
+