Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

#
#
#
# TO REMAKE BETTER
#
#

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

.PHONY: test all install depend clean cleanall

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

#test:: tserv tserv2
test:: mplay

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

OBJS= mplay.o xread.o gclock.o gvideo.o gload.o gbuffer.o gphoto.o

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

depend::
        $(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps

deps:
        $(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps

include deps