summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/fofi/Makefile.in
blob: 2ae65fa1fb8f7943923db41152675b56b6e17546 (plain)
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
#========================================================================
#
# fofi library Makefile
#
# Copyright 1996 Derek B. Noonburg
#
#========================================================================

srcdir = @srcdir@
VPATH = @srcdir@

srcdirparent = $(srcdir)/..
goodir = $(srcdirparent)/goo

kpathsea_include_dir = -I../../../texk -I$(srcdir)/../../../texk
ALLCXXFLAGS = $(CXXFLAGS) @DEFS@ -I.. -I$(srcdirparent) -I../goo -I$(goodir) -I. -I$(srcdir) $(kpathsea_include_dir)
CXXFLAGS = @CXXFLAGS@
CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@

kpse_include ../../texk/make/library.mk


#------------------------------------------------------------------------

.SUFFIXES:
.SUFFIXES: .cc .c .o

.cc.o:
	$(CXX) $(ALLCXXFLAGS) -c $<

FOFI_OBJS = FoFiBase.o FoFiEncodings.o FoFiTrueType.o FoFiType1.o FoFiType1C.o

libfofi.a: $(FOFI_OBJS)
	rm -f $@
	$(AR) $(ARFLAGS) $@ $(FOFI_OBJS)
	$(RANLIB) $@

#------------------------------------------------------------------------

mostlyclean clean:
	rm -f $(FOFI_OBJS) libfofi.a
	rm -f Makefile.bak

distclean maintainer-clean extraclean: clean
	rm -f Makefile

#------------------------------------------------------------------------

depend:
	srcdirparent=`(cd $(srcdirparent) >/dev/null; pwd)`; \
	  $(CXX) $(ALLCXXFLAGS) -MM $(srcdir)/*.cc \
	     | sed 's|$(srcdir)|$$(srcdir)|' \
	     | sed 's|'$$srcdirparent/'|$$(srcdirparent)/|g' \
	     | sed 's|$$(srcdirparent)/goo/|$$(goodir)/|g' \
	     > $(srcdir)/depend.mk

kpse_include fofi/depend.mk