comparison Gui/Makefile @ 1693:d237c5d4b216

GUI version n-1
author arpi
date Sat, 25 Aug 2001 21:04:29 +0000
parents
children 07fd7d1b8cc9
comparison
equal deleted inserted replaced
1692:6c98e425c091 1693:d237c5d4b216
1
2 LIB = libgui.a
3
4 include ../config.mak
5 include config.mak
6
7 include bitmap/bitmap.mak
8 MPLAYERDIR = mplayer/
9 include gui.mak
10
11 INCDIR = -I. -I./event -I./wm -I./skin $(GTKINC)
12
13 OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
14 -fexpensive-optimizations -malign-double -fschedule-insns2 -mwide-multiply -Wall
15
16 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
17
18 .SUFFIXES: .c .o
19
20 .c.o:
21 $(CC) -c $(CFLAGS) -o $@ $<
22
23 ### TARGETS ###
24
25 $(LIB): .depend $(OBJS)
26 $(MAKE) -C mplayer
27 rm -f $(LIB)
28 ar rc $(LIB) $(OBJS) $(MPLAYEROBJS)
29
30 all: $(LIB)
31
32 clean:
33 $(MAKE) -C mplayer clean
34 rm -rf $(OBJS) *.o *~ *.bak main $(PRG) $(LIB) .depend
35
36 #dep: depend
37 #
38 #depend:
39 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
40 #
41
42 distclean: clean
43
44 dep: depend
45
46 depend: .depend
47
48 .depend: Makefile config.mak config.h gui.mak bitmap/bitmap.mak
49 $(MAKE) -C mplayer depend
50 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
51
52 #
53 # include dependency files if they exist
54 #
55 ifneq ($(wildcard .depend),)
56 include .depend
57 endif