Debian Codegraph @

Makefile

raw symbols SCIP
1 # GIMP Text Colorer GNUMakefile
2 # Copyright (C) 2000 Marco Lamberto <[email protected]>
3 # Web page: http://the.sunnyspot.org/gimp/
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 CC = gcc
20 CDEBUG = $(DEBUG) -g #-DDEBUG
21 CCFLAGS = -Wall -Wstrict-prototypes -Wmissing-declarations -I. $(CDEBUG)
22 CLIBS =
23 SOURCES = $(wildcard *.c)
24
25 OBJDIR = .obj
26 BINDIR = /usr/bin
27 CFLAGS = $(CCFLAGS) $(shell $(BINDIR)/glib-config --cflags)
28 LIBS = $(CLIBS) $(shell $(BINDIR)/glib-config --libs)
29 DESTS = $(addprefix $(OBJDIR)/, $(SOURCES:.c=.o))
30 BIN = abr2gbr
31 DEPEND = $(OBJDIR)/.depend
32
33
34 default: all
35
36
37 $(OBJDIR):
38 if [ ! -d $@ ]; then mkdir $@; fi
39
40
41 all: $(OBJDIR) $(OBJDIR)/$(BIN)
42
43 $(OBJDIR)/%.o: %.c
44 $(CC) -o $@ $(CFLAGS) -c $<
45
46 $(OBJDIR)/$(BIN): $(DESTS)
47 $(CC) -o $@ $(CFLAGS) $(LIBS) $(DESTS)
48 if [ ! -L $(BIN) ]; then \
49 ln -s $(OBJDIR)/$(BIN) .; \
50 ln -s $(OBJDIR)/$(BIN) jbr2gbr; \
51 fi
52
53 dep depend:
54 $(CC) $(CFLAGS) -M $(SOURCES) > $(DEPEND)
55
56 install: $(BIN)
57 strip $(BIN)
58
59
60 clean:
61 -rm -f core $(DESTS) \
62 $(OBJDIR)/$(BIN) $(BIN) $(BIN)-ui \
63 $(DEPEND) \
64 font_selection jbr2gbr
65 -rmdir $(OBJDIR)
66
67 cleandests:
68 -rm -f core $(DESTS)
69
70 # vim: set ts=2 sw=2 tw=79 ai nowrap: