Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # ----------------------------------------------------------------
2 # RCS data:
3 # $Date: 2003/07/08 13:33:18 $
4 # $Revision: 1.4 $
5 # $Source: /cvsroot/miwm/miwm/miwm/Makefile,v $
6 # $Id: Makefile,v 1.4 2003/07/08 13:33:18 bwise837 Exp $
7 # $RCSfile: Makefile,v $
8 #
9 # ----------------------------------------------------------------
10 # Copyright Ben Paul Wise.
11 # ----------------------------------------------------------------
•12 #
13 # This program is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 2 of the License, or
16 # (at your option) any later version.
•17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
•20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
•22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #
27 # ----------------------------------------------------------------
28
29 default: all
30
31 DEPS_FILE = make.depend
32 include make.config
33 include $(DEPS_FILE)
34
35 # ----------------------------------------------------------------
36
37 # clear the list
38 .SUFFIXES:
39
40 # add our own list
41 .SUFFIXES: .o .cc
42
43 CFLAGS = $(DBGFLAGS) -D_POSIX_SOURCE -DSHAPE
44
45
46 TARGET = all
47
•48 OBJS = miwm.o manage.o mouse.o client.o cursor.o error.o \
49 disp.o shape.o resource.o wspace.o wm.o menu.o \
50 null.o ops.o mipix.o \
51 alpha.o nodes.o rng.o mlchckr.o \
52 miwm_framework.o \
53 EKeyValueParser.o EPropertyList.o ESimpleCLParser.o EStringTokenizer.o EStringList.o EPathFinder.o EStdStringTokenizer.o \
54 EShellProcess.o
55
56 HEADERS = client.h miwm.h struct.h mimenu.h null.h ws.h mipix.h \
57 miwm_framework.h \
58 EKeyValueParser.h EPropertyList.h ESimpleCLParser.h EStringTokenizer.h EStringList.h EPathFinder.h EStdStringTokenizer.h \
59 EShellProcess.h
60
61 SRCS = $(OBJS:.o=.cc)
62
•63 INCS = -I. -I/usr/X11R6/include -I/include \
64 -I$(INSTALLDIR)/include/beta
65 # -I/usr/include/g++ \
66 # -I$(HOME)/lib/beta/include
67
•68 all: $(DEPS_FILE) miwm
69 # $(MAKE) TAGS
70 # $(MAKE) depend
71 # $(MAKE) miwm
72
73 miwm: $(OBJS) $(HEADERS)
74 @echo linking $@
75 $(CC) -g $(OBJS) -o miwm $(LDFLAGS)
76
77
78 # compile CC files
79 .cc.o :
•80 @echo " compiling $*.cc"
81 $(CC) -c $(CFLAGS) $(INCS) $*.cc -o $*.o
82
83
84
85 clean:
86 rm -f *.o *~ core *.tmp
87
88 distclean:
89 $(MAKE) clean
90 rm -f TAGS *.pv .nfs*
91 rm -f $(DEPS_FILE)
92 rm -f make.config
93 cp config.linux make.config
94 rm -f miwm miwm.pure
95
96 TAGS: $(SRCS) $(HEADERS)
97 etags *.cc *.h
98
99
100 $(DEPS_FILE): $(SRCS) $(HEADERS)
101 @echo "Building $(DEPS_FILE) file. Please be patient."
•102 $(CC) $(DEPFLAG) $(SRCS) $(INCS) >> $(DEPS_FILE).tmp
103 @mv $(DEPS_FILE).tmp $(DEPS_FILE)
104 @echo "Done building $(DEPS_FILE) file."
105 depend: $(DEPS_FILE)
106
107 cleanly:
108 $(MAKE) distclean
109 $(MAKE) all
110 $(MAKE) clean
111
112 # make sure, on install, that we are actually installing
113 # the most recent executable. also move a basic man page.
114 # NB: you probably have to be root to do this.
•115 install:
116 $(MAKE) miwm
117 cp miwm $(INSTALLDIR)/bin/miwm
118 cp miwm.1 $(INSTALLDIR)/man/man1
119
120 MANIFEST: distclean
121 ls -lR > MANIFEST; ls -lR > MANIFEST
122
123 # make compressed archive
124 zdistrib: MANIFEST
125 cd ..; tar -czvf miwm`date +%Y%m%d`.tgz miwm
126
127 # make uncompressed archive
•128 distrib:
129 @$(MAKE) distclean
130 @$(MAKE) MANIFEST
131 @echo making compressed archive
132 @cd ..; tar -cf miwm`date +%Y%m%d`.tar miwm
133
134 # make a distribution, sign it, and bundle them together
135 # (no need to compress twice)
136 signed_zdistrib: MANIFEST
137 make distrib
•138 cd .. ; gpg --armor --output miwm`date +%Y%m%d`.tar.sig --detach-sign miwm`date +%Y%m%d`.tar
139 cd .. ; tar -zcf miwm`date +%Y%m%d`.tgz miwm`date +%Y%m%d`.tar.sig miwm`date +%Y%m%d`.tar
140 cd .. ; rm -f miwm`date +%Y%m%d`.tar.sig miwm`date +%Y%m%d`.tar
141
142 # ----------------------------------------------------------------
143 # end of miwm makefile
144 # ----------------------------------------------------------------