2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
include ../bitmap/bitmap.mak
|
|
|
|
include ../gui.mak
|
|
|
|
|
|
|
|
LIB = mplayer
|
|
|
|
|
2001-11-19 22:06:42 +00:00
|
|
|
INCDIR = -I. -I../event -I../wm -I../skin $(GTKINC) $(EXTRA_INC)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
|
2001-09-30 21:59:52 +00:00
|
|
|
-fexpensive-optimizations -fschedule-insns2 -Wall
|
2001-10-01 09:30:46 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
|
|
|
OPTIMIZE += -malign-double
|
|
|
|
endif
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
### TARGETS ###
|
|
|
|
|
|
|
|
default: .depend $(MPLAYEROBJS)
|
|
|
|
|
|
|
|
all: default
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(MPLAYEROBJS) *.o *~ *.bak .depend
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
2001-09-07 21:04:14 +00:00
|
|
|
.depend: Makefile ../config.mak ../gui.mak ../bitmap/bitmap.mak
|
2001-08-25 21:04:29 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(MPLAYERSRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|