2001-08-25 21:04:29 +00:00
|
|
|
include ../config.mak
|
|
|
|
|
2006-01-15 01:56:17 +00:00
|
|
|
LIBNAME = libgui.a
|
|
|
|
|
2006-07-27 10:08:17 +00:00
|
|
|
INCDIR = -I. -I.. -I../loader -I./wm -I./skin
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2006-09-29 09:46:06 +00:00
|
|
|
CFLAGS = $(INCDIR) $(OPTFLAGS)
|
|
|
|
#CFLAGS += -DDEBUG
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2006-07-06 01:51:31 +00:00
|
|
|
ifeq ($(TARGET_WIN32),yes)
|
|
|
|
SRCS = win32/dialogs.c \
|
|
|
|
win32/gui.c \
|
|
|
|
win32/interface.c \
|
|
|
|
win32/playlist.c \
|
|
|
|
win32/preferences.c \
|
|
|
|
win32/skinload.c \
|
|
|
|
win32/widgetrender.c \
|
2006-07-13 22:56:02 +00:00
|
|
|
win32/wincfg.c \
|
|
|
|
|
2006-07-06 01:51:31 +00:00
|
|
|
else
|
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 \
|
2006-07-13 22:56:02 +00:00
|
|
|
mplayer/gtk/common.c \
|
|
|
|
|
2006-07-06 01:51:31 +00:00
|
|
|
endif
|
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/*~ \
|
2006-07-06 01:51:31 +00:00
|
|
|
wm/*.o wm/*~ \
|
2006-08-22 23:04:48 +00:00
|
|
|
win32/*.o win32/*~ \
|
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
|