Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1085 pj 1
#
2
#
3
#
4
# TO REMAKE BETTER
5
#
6
#
7
 
8
ifndef BASE
9
BASE=../../..
10
endif
11
include $(BASE)/config/config.mk
12
include $(BASE)/config/libdep.mk
13
 
14
.PHONY: test all install depend clean cleanall
15
 
16
C_INC+= -I$(BASE)/ports
17
LINK_LIB+= -lmpeg -lmp3
18
LINK_DEP+= $(LIB_PATH)/libmpeg.a $(LIB_PATH)/libmp3.a
19
 
20
test:: mplay mplay2 mpg123
21
 
22
clean::
23
	rm -f *.o
24
	rm -f mplay
25
	rm -f mplay2
26
	rm -f mpg123
27
 
28
mplay:mplay.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
29
	$(LD) $(LINK_OPT) $(LINK_STARTUP) mplay.o $(LIB_PATH)/initfs.o \
30
	--start-group $(LINK_LIB) --end-group \
31
	-o mplay
32
 
33
mplay2:mplay2.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
34
	$(LD) $(LINK_OPT) $(LINK_STARTUP) mplay2.o $(LIB_PATH)/initfs.o \
35
	--start-group $(LINK_LIB) --end-group \
36
	-o mplay2
37
 
38
mpg123:mpg123.o common.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
39
	$(LD) $(LINK_OPT) $(LINK_STARTUP) \
40
	mpg123.o common.o $(LIB_PATH)/initfs.o \
41
	--start-group $(LINK_LIB) --end-group \
42
	-o mpg123