diff Makefile @ 1991:dee4b2ea5e5b

add gui support to config scripts, and fixed some warning.
author pontscho
date Thu, 27 Sep 2001 17:40:43 +0000
parents e0cc7b7290ec
children 14c4f848a767
line wrap: on
line diff
--- a/Makefile	Thu Sep 27 17:03:39 2001 +0000
+++ b/Makefile	Thu Sep 27 17:40:43 2001 +0000
@@ -23,6 +23,9 @@
 VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS)
 
 PARTS = mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 drivers drivers/syncfb
+ifeq ($(GUI),yes)
+PARTS += Gui
+endif
 
 ifneq ($(W32_LIB),)
 PARTS += loader loader/DirectShow
@@ -74,8 +77,13 @@
 encore/libencore.a:
 	$(MAKE) -C encore
 
+Gui/libgui.a:
+	$(MAKE) -C Gui
 
 MPLAYER_DEP = mplayer.o $(OBJS) $(LOADER_DEP) $(AV_DEP) $(COMMONLIBS) 
+ifeq ($(GUI),yes)
+MPLAYER_DEP += Gui/libgui.a
+endif
 mplayerwithoutlink: $(MPLAYER_DEP)	
 	@for a in $(PARTS); do $(MAKE) -C $$a all ; done