Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1655 | giacomo | 1 | # |
2 | # |
||
3 | # |
||
4 | # TO REMAKE BETTER |
||
5 | # |
||
6 | # |
||
7 | |||
8 | ifndef BASE |
||
9 | BASE=../.. |
||
10 | endif |
||
11 | include $(BASE)/config/config.mk |
||
12 | |||
13 | .PHONY: test all install depend clean cleanall |
||
14 | |||
15 | C_INC+= -I$(BASE)/ports |
||
16 | LINK_LIB+= -lmpeg |
||
17 | LINK_DEP+= $(LIB_PATH)/libmpeg.a |
||
18 | |||
19 | #test:: tserv tserv2 |
||
20 | test:: mplay |
||
21 | |||
22 | clean:: |
||
23 | rm -f *.o |
||
24 | rm -f mplay |
||
25 | |||
26 | OBJS= mplay.o xread.o gclock.o gvideo.o gload.o gbuffer.o gphoto.o |
||
27 | |||
28 | mplay: $(OBJS) $(LIB_PATH)/initfs.o $(LIB_DEP) |
||
29 | $(LD) $(LINK_OPT) $(LINK_STARTUP) \ |
||
30 | $(OBJS) \ |
||
31 | $(LIB_PATH)/initfs.o \ |
||
32 | --start-group $(LINK_LIB) --end-group \ |
||
33 | -o mplay |
||
34 | |||
35 | depend:: |
||
36 | $(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps |
||
37 | |||
38 | deps: |
||
39 | $(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps |
||
40 | |||
41 | include deps |