1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00
mpv/Gui/Makefile
diego 0507f7f35a simplify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21233 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-25 17:16:21 +00:00

78 lines
1.5 KiB
Makefile

include ../config.mak
LIBNAME = libgui.a
CFLAGS = -I. -I.. -I../loader -I./wm -I./skin $(OPTFLAGS)
#CFLAGS += -DDEBUG
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 \
win32/wincfg.c \
else
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 \
endif
OBJS = $(SRCS:.c=.o)
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
$(LIBNAME): $(OBJS)
rm -f $(LIBNAME)
$(AR) rc $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)
clean:
rm -f *.o *.a *~ \
mplayer/*.o mplayer/*~ \
mplayer/gtk/*.o mplayer/gtk/*~ \
skin/*.o skin/*~ \
wm/*.o wm/*~ \
win32/*.o win32/*~ \
distclean: clean
rm -f .depend
dep depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
ifneq ($(wildcard .depend),)
include .depend
endif