Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

#
#
#
# TO REMAKE BETTER
#
#

ifndef BASE
BASE=../../..
endif
include $(BASE)/config/config.mk
include $(BASE)/config/libdep.mk

.PHONY: test all install depend clean cleanall

C_INC+= -I$(BASE)/ports
LINK_LIB+= -lmpeg -lmp3
LINK_DEP+= $(LIB_PATH)/libmpeg.a $(LIB_PATH)/libmp3.a

test:: mplay mplay2 mpg123

clean::
        rm -f *.o
        rm -f mplay
        rm -f mplay2
        rm -f mpg123

mplay:mplay.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
        $(LD) $(LINK_OPT) $(LINK_STARTUP) mplay.o $(LIB_PATH)/initfs.o \
        --start-group $(LINK_LIB) --end-group \
        -o mplay

mplay2:mplay2.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
        $(LD) $(LINK_OPT) $(LINK_STARTUP) mplay2.o $(LIB_PATH)/initfs.o \
        --start-group $(LINK_LIB) --end-group \
        -o mplay2

mpg123:mpg123.o common.o $(LIB_PATH)/initfs.o  $(LIB_DEP)
        $(LD) $(LINK_OPT) $(LINK_STARTUP) \
        mpg123.o common.o $(LIB_PATH)/initfs.o \
        --start-group $(LINK_LIB) --end-group \
        -o mpg123