aboutsummaryrefslogtreecommitdiffstats
path: root/package/fonera-mp3/src/Makefile
blob: 350f8485511d1d9f5d459d08f0192c5622958126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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