adding the code documentation guide lines
[mplayer/glamo.git] / Gui / Makefile
blobdb2567f031e958256a413ed2b432df8e00d7d3fd
2 LIB = libgui.a
4 include ../config.mak
5 include config.mak
7 INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
9 OPTIMIZE = $(OPTFLAGS) \
10 -fexpensive-optimizations -fschedule-insns2 -Wall
12 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
14 SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \
15 skin/skin.c skin/font.c skin/cut.c \
16 mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \
17 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
18 OBJS = $(SRCS:.c=.o)
20 .SUFFIXES: .c .o
22 .c.o:
23 $(CC) -c $(CFLAGS) -o $@ $<
25 ### TARGETS ###
27 $(LIB): .depend $(OBJS)
28 rm -f $(LIB)
29 $(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS)
30 $(RANLIB) $(LIB)
32 all: $(LIB)
34 clean:
35 rm -rf $(OBJS) *.o *~ *.bak main $(LIB) .depend
37 #dep: depend
39 #depend:
40 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
43 distclean: clean
45 dep: depend
47 depend: .depend
49 .depend: Makefile config.mak
50 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
53 # include dependency files if they exist
55 ifneq ($(wildcard .depend),)
56 include .depend
57 endif