0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/Gui/Makefile
pl 20cce1151e patchs by Björn Sandell <biorn@dce.chalmers.se>:
- --disable-select affects more than the oss audio
 - openbsd and netbsd oss support for non-x86
 - ar/AR cleanups as '$(AR)' defaults to 'ar' with make


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6037 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-10 01:50:17 +00:00

61 lines
1021 B
Makefile

LIB = libgui.a
include ../config.mak
include config.mak
include bitmap/bitmap.mak
MPLAYERDIR = mplayer/
include gui.mak
INCDIR = -I. -I./event -I./wm -I./skin $(GTKINC) $(EXTRA_INC)
OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
-fexpensive-optimizations -fschedule-insns2 -Wall
ifeq ($(TARGET_ARCH_X86),yes)
OPTIMIZE += -malign-double
endif
CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
### TARGETS ###
$(LIB): .depend $(OBJS)
$(MAKE) -C mplayer
rm -f $(LIB)
$(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS)
all: $(LIB)
clean:
$(MAKE) -C mplayer clean
rm -rf $(OBJS) *.o *~ *.bak main $(PRG) $(LIB) .depend
#dep: depend
#
#depend:
# makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
#
distclean: clean
dep: depend
depend: .depend
.depend: Makefile config.mak gui.mak bitmap/bitmap.mak
$(MAKE) -C mplayer depend
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif