2001-08-25 23:04:29 +02:00
|
|
|
include ../config.mak
|
|
|
|
|
2006-01-15 02:56:17 +01:00
|
|
|
LIBNAME = libgui.a
|
|
|
|
|
2006-11-25 18:16:21 +01:00
|
|
|
CFLAGS = -I. -I.. -I../loader -I./wm -I./skin $(OPTFLAGS)
|
2006-09-29 11:46:06 +02:00
|
|
|
#CFLAGS += -DDEBUG
|
2001-08-25 23:04:29 +02:00
|
|
|
|
2006-07-06 03:51:31 +02: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-14 00:56:02 +02:00
|
|
|
win32/wincfg.c \
|
|
|
|
|
2006-07-06 03:51:31 +02:00
|
|
|
else
|
2006-03-25 11:38:37 +01: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-14 00:56:02 +02:00
|
|
|
mplayer/gtk/common.c \
|
|
|
|
|
2006-07-06 03:51:31 +02:00
|
|
|
endif
|
2002-07-03 10:55:26 +02:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
2001-08-25 23:04:29 +02:00
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2006-05-13 20:01:04 +02:00
|
|
|
$(LIBNAME): $(OBJS)
|
2006-01-15 02:56:17 +01:00
|
|
|
rm -f $(LIBNAME)
|
2006-11-25 18:16:21 +01:00
|
|
|
$(AR) rc $(LIBNAME) $(OBJS)
|
2006-01-15 02:56:17 +01:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-08-25 23:04:29 +02:00
|
|
|
|
2006-01-15 02:56:17 +01:00
|
|
|
all: $(LIBNAME)
|
2001-08-25 23:04:29 +02:00
|
|
|
|
|
|
|
clean:
|
2006-01-28 18:35:16 +01:00
|
|
|
rm -f *.o *.a *~ \
|
|
|
|
mplayer/*.o mplayer/*~ \
|
|
|
|
mplayer/gtk/*.o mplayer/gtk/*~ \
|
|
|
|
skin/*.o skin/*~ \
|
2006-07-06 03:51:31 +02:00
|
|
|
wm/*.o wm/*~ \
|
2006-08-23 01:04:48 +02:00
|
|
|
win32/*.o win32/*~ \
|
2001-08-25 23:04:29 +02:00
|
|
|
|
|
|
|
distclean: clean
|
2006-01-27 01:18:52 +01:00
|
|
|
rm -f .depend
|
2001-08-25 23:04:29 +02:00
|
|
|
|
2006-11-20 12:18:01 +01:00
|
|
|
dep depend:
|
2001-08-25 23:04:29 +02:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|