2001-08-25 21:04:29 +00:00
|
|
|
include ../config.mak
|
|
|
|
include config.mak
|
|
|
|
|
2006-01-15 01:56:17 +00:00
|
|
|
LIBNAME = libgui.a
|
|
|
|
|
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)
|
|
|
|
|
2006-03-25 10:38:37 +00:00
|
|
|
SRCS = wm/ws.c \
|
|
|
|
wm/wsxdnd.c \
|
|
|
|
app.c \
|
|
|
|
interface.c \
|
|
|
|
cfg.c \
|
|
|
|
bitmap.c \
|
|
|
|
skin/skin.c \
|
|
|
|
skin/font.c \
|
|
|
|
skin/cut.c \
|
|
|
|
mplayer/widgets.c \
|
|
|
|
mplayer/play.c \
|
|
|
|
mplayer/mw.c \
|
|
|
|
mplayer/sw.c \
|
|
|
|
mplayer/menu.c \
|
|
|
|
mplayer/pb.c \
|
|
|
|
mplayer/common.c \
|
|
|
|
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 ###
|
|
|
|
|
2006-05-13 18:01:04 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2006-01-15 01:56:17 +00:00
|
|
|
rm -f $(LIBNAME)
|
|
|
|
$(AR) rc $(LIBNAME) $(OBJS) $(MPLAYEROBJS)
|
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2006-01-15 01:56:17 +00:00
|
|
|
all: $(LIBNAME)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
clean:
|
2006-01-28 17:35:16 +00:00
|
|
|
rm -f *.o *.a *~ \
|
|
|
|
mplayer/*.o mplayer/*~ \
|
|
|
|
mplayer/gtk/*.o mplayer/gtk/*~ \
|
|
|
|
skin/*.o skin/*~ \
|
|
|
|
wm/*.o wm/*~
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#dep: depend
|
|
|
|
#
|
|
|
|
#depend:
|
|
|
|
# makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
|
|
|
|
#
|
|
|
|
|
|
|
|
distclean: clean
|
2006-01-27 00:18:52 +00:00
|
|
|
rm -f .depend
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
2006-05-13 18:01:04 +00:00
|
|
|
depend:
|
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
|