File: Makefile.in

package info (click to toggle)
fontforge 1:20170731~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 67,252 kB
  • ctags: 42,582
  • sloc: ansic: 580,893; python: 5,476; sh: 3,081; makefile: 1,269; perl: 315; cpp: 176; ruby: 97; objc: 92; xml: 90; sed: 9
file content (71 lines) | stat: -rw-r--r-- 2,158 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SHELL = @SHELL@

prefix = @prefix@
exec_prefix = @exec_prefix@

sharedir = @prefix@/share/fontforge
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
VPATH = @srcdir@
bindir = @bindir@
libdir = @libdir@
plugindir = $(sharedir)/plugins

LIBTOOL = @LIBTOOL@
CC = @CC@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_11LIB = @X_11LIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
STATIC_LIBS = @STATIC_LIBS@

ffgtk_OBJECTS = fontview.o startgtk.o uiutil.o cursors.o windowmenu.o prefs.o \
    openfontdlg.o ../fontforge/stamp.o pythonui.o
gtk_widget_OBJECTS = gwwvmenubar.o gwwvask.o gwwvprogress.o
glade_OBJECTS = ff_interface.o support.o

_CFLAGS = -I$(top_srcdir)/inc -I../inc -I$(srcdir) -I$(top_srcdir) @WFLAGS@ $(X_CFLAGS) \
    @DEFS@ '-DSHAREDIR="$(sharedir)"' -DLIBDIR='"$(libdir)"' \
    @CPPFLAGS@ '-DPREFIX="@prefix@"'
CFLAGS = @CFLAGS@ $(_CFLAGS) `pkg-config --cflags gtk+-2.0`
LDFLAGS = @LDFLAGS@
LIBS = -rpath $(libdir) ../libfontforge.la ../libgutils.la \
    ../libgunicode.la \
    `pkg-config --libs gtk+-2.0` `pkg-config --libs gmodule-2.0` \
    @LIBS@ $(STATIC_LIBS) -lm

all: fontforgegtk

fontforgegtk: $(ffgtk_OBJECTS) $(gtk_widget_OBJECTS) $(glade_OBJECTS) stubs.o
	$(LIBTOOL) --mode=link $(CC) -export-dynamic $(LDFLAGS) -o fontforgegtk \
		$(ffgtk_OBJECTS) $(gtk_widget_OBJECTS) $(glade_OBJECTS) stubs.o \
		`pkg-config --libs gtk+-2.0` `pkg-config --libs gmodule-2.0` $(LIBS)

#ff_interface.c: interface.c add-my-widgets.sed
#	sed -f add-my-widgets.sed < interface.c > ff_interface.c

%.o: %.c $(srcdir)../fontforge/splinefont.h $(srcdir)/viewsgtk.h  $(srcdir)/../fontforge/uiinterface.h \
	$(srcdir)/../fontforge/fontforgevw.h $(srcdir)/../fontforge/libffstamp.h $(srcdir)/../fontforge/stamp.c
	$(CC) $(CFLAGS) -c $<

clean:
	-rm -f fontforgegtk
	-rm -f *.o
	-rm -rf .libs

distclean cleaner: clean
	-rm -f Makefile

install:
	mkdir -p $(sharedir)/pixmaps
	mkdir -p $(DESTDIR)$(bindir)
	-$(INSTALL_DATA) $(srcdir)/pixmaps/*.{png,xbm} $(sharedir)/pixmaps
	$(LIBTOOL) --mode=install $(INSTALL) -c fontforgegtk $(DESTDIR)$(bindir)

strip:
	-strip .libs/fontforgegtk