Debian Codegraph @

Makefile.in

raw
1 prefix=@prefix@
2 etcdir=@sysconfdir@
3 bindir=${prefix}/bin
4 sbindir=${prefix}/sbin
5 libdir=${prefix}/lib
6 moddir=${libdir}/cdebconf/frontend
7 sharedir=${prefix}/share/debconf
8 mandir=${prefix}/share/man
9 incdir=${prefix}/include/cdebconf
10
11 PACKAGE=@PACKAGE@
12 CC=@CC@
13 CFLAGS=@CFLAGS@ -I.
14 CPPFLAGS=@CPPFLAGS@
15 LDFLAGS=@LDFLAGS@
16 NEWT_CFLAGS=@NEWT_CFLAGS@
17 NEWT_LIBS=@NEWT_LIBS@
18 GTK_CFLAGS=@GTK_CFLAGS@
19 GTK_LIBS=@GTK_LIBS@
20
21 # Removed -Werror to let build for GTK+3 with deprecated functions
22 CFLAGS += -funsigned-char -fstrict-aliasing -Wall -W -Wundef \
23 -Wwrite-strings -Wsign-compare -Wno-unused-parameter -Winit-self \
24 -Wpointer-arith -Wredundant-decls -Wno-format-zero-length \
25 -Wmissing-prototypes -Wmissing-format-attribute
26
27 FRONTENDS=@FRONTENDS@
28 PLUGIN_MODULES=$(addsuffix -plugin-$(PACKAGE).so,$(FRONTENDS))
29
30 all: $(PLUGIN_MODULES)
31
32 install: $(PLUGIN_MODULES)
33 for p in $(PLUGIN_MODULES); do \
34 install -m755 -d $(DESTDIR)/$(moddir)/$${p%%-*} ; \
35 install -m644 $$p $(DESTDIR)/$(moddir)/$${p%%-*}/$${p#*-} ; \
36 done
37
38 newt-plugin-$(PACKAGE).so: newt-plugin-$(PACKAGE).opic
39 $(CC) $(LDFLAGS) -shared -o $@ newt-plugin-$(PACKAGE).opic $(NEWT_LIBS)
40
41 gtk-plugin-$(PACKAGE).so: gtk-plugin-$(PACKAGE).opic
42 $(CC) $(LDFLAGS) -shared -o $@ $^ $(GTK_LIBS)
43
44 clean:
45 rm -f $(PLUGIN_MODULES)
46 rm -f *.opic
47
48 distclean: clean
49 rm -f config.log config.status
50 rm -f Makefile
51
52 gtk-%.opic: gtk-%.c
53 @echo "Compiling $< to $@"
54 $(CC) $(CPPFLAGS) $(CFLAGS) $(GTK_CFLAGS) -fPIC -o $@ -c $<
55
56 %.opic: %.c
57 @echo "Compiling $< to $@"
58 $(CC) $(CPPFLAGS) $(CFLAGS) $(NEWT_CFLAGS) -fPIC -o $@ -c $<