2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
LIB = libgui.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
include config.mak
|
|
|
|
|
2002-08-28 20:52:02 +00:00
|
|
|
INCDIR = -I. -I./event -I./wm -I./skin $(GTKINC) $(EXTRA_INC) $(FREETYPE_INC)
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
|
2001-09-30 21:59:52 +00:00
|
|
|
-fexpensive-optimizations -fschedule-insns2 -Wall
|
2001-10-01 09:30:46 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
|
|
|
OPTIMIZE += -malign-double
|
|
|
|
endif
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
|
|
|
|
|
2002-08-11 13:12:38 +00:00
|
|
|
SRCS = wm/ws.c wm/wsconv.c wm/wsxdnd.c app.c events.c interface.c cfg.c \
|
2002-07-03 08:55:26 +00:00
|
|
|
bitmap/bitmap.c bitmap/tga/tga.c bitmap/bmp/bmp.c bitmap/png/png.c \
|
|
|
|
skin/skin.c skin/font.c skin/cut.c \
|
|
|
|
mplayer/mplayer.c mplayer/widgets.c mplayer/play.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
|
|
|
|
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
|