2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
LIB = libgui.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
include config.mak
|
|
|
|
|
2004-10-28 01:15:53 +00:00
|
|
|
INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2006-01-13 23:38:16 +00:00
|
|
|
OPTIMIZE = $(OPTFLAGS)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
|
|
|
|
|
2002-11-02 20:10:18 +00:00
|
|
|
SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \
|
2002-07-03 08:55:26 +00:00
|
|
|
skin/skin.c skin/font.c skin/cut.c \
|
2003-01-17 22:39:43 +00:00
|
|
|
mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \
|
2002-11-13 14:12:21 +00:00
|
|
|
mplayer/gtk/menu.c mplayer/gtk/mb.c mplayer/gtk/about.c mplayer/gtk/pl.c mplayer/gtk/sb.c mplayer/gtk/fs.c mplayer/gtk/opts.c mplayer/gtk/url.c mplayer/gtk/eq.c mplayer/gtk/common.c
|
2002-07-03 08:55:26 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
### TARGETS ###
|
|
|
|
|
|
|
|
$(LIB): .depend $(OBJS)
|
|
|
|
rm -f $(LIB)
|
2002-05-10 01:50:17 +00:00
|
|
|
$(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIB)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
clean:
|
2004-06-27 19:17:24 +00:00
|
|
|
rm -rf $(OBJS) *.o *~ *.bak main $(LIB) .depend
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#dep: depend
|
|
|
|
#
|
|
|
|
#depend:
|
|
|
|
# makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
|
|
|
|
#
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
2002-07-03 08:55:26 +00:00
|
|
|
.depend: Makefile config.mak
|
2001-08-25 21:04:29 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|