2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
LIB = libgui.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
include config.mak
|
|
|
|
|
2002-11-10 13:12:53 +00:00
|
|
|
INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2003-01-17 23:50:53 +00:00
|
|
|
OPTIMIZE = $(OPTFLAGS) \
|
2002-11-25 02:19:27 +00:00
|
|
|
-fexpensive-optimizations -fschedule-insns2 -Wall
|
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)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS) *.o *~ *.bak main $(PRG) $(LIB) .depend
|
|
|
|
|
|
|
|
#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
|