1693
|
1
|
|
2 include ../../config.mak
|
|
3 include ../config.mak
|
|
4
|
|
5 include ../bitmap/bitmap.mak
|
|
6 include ../gui.mak
|
|
7
|
|
8 LIB = mplayer
|
|
9
|
3012
|
10 INCDIR = -I. -I../event -I../wm -I../skin $(GTKINC) $(EXTRA_INC)
|
1693
|
11
|
|
12 OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
|
2024
8cb7643ef739
Remved cpu specific compiler optimizations, these should if at all be added dynamically by configure.
atmos4
diff
changeset
|
13 -fexpensive-optimizations -fschedule-insns2 -Wall
|
2025
|
14 ifeq ($(TARGET_ARCH_X86),yes)
|
|
15 OPTIMIZE += -malign-double
|
|
16 endif
|
1693
|
17
|
|
18 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
|
|
19
|
|
20 .SUFFIXES: .c .o
|
|
21
|
|
22 .c.o:
|
|
23 $(CC) -c $(CFLAGS) -o $@ $<
|
|
24
|
|
25 ### TARGETS ###
|
|
26
|
|
27 default: .depend $(MPLAYEROBJS)
|
|
28
|
|
29 all: default
|
|
30
|
|
31 clean:
|
|
32 rm -rf $(MPLAYEROBJS) *.o *~ *.bak .depend
|
|
33
|
|
34 distclean: clean
|
|
35
|
|
36 dep: depend
|
|
37
|
|
38 depend: .depend
|
|
39
|
1866
|
40 .depend: Makefile ../config.mak ../gui.mak ../bitmap/bitmap.mak
|
1693
|
41 $(CC) -MM $(CFLAGS) $(MPLAYERSRCS) 1>.depend
|
|
42
|
|
43 #
|
|
44 # include dependency files if they exist
|
|
45 #
|
|
46 ifneq ($(wildcard .depend),)
|
|
47 include .depend
|
|
48 endif
|