~ubuntu-branches/ubuntu/raring/grace/raring

« back to all changes in this revision

Viewing changes to .pc/fftw3.diff/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Breen
  • Date: 2010-06-06 14:36:06 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100606143606-g8rdx6m4wyg3xx8l
Tags: 1:5.1.22-7
* Replace defoma font management with new /usr/sbin/update-grace-fonts
  trigger.  Many thanks to Kenshi Muto for the implementation.
  (Closes: #542335, #583956, #583964)
  - README.Debian: Update description of font handling, eliminate all
    references to defoma.
  - control: Depends -= defoma, += fontconfig.
* grace.preinst, grace.postinst: Additionally remove code only needed for
  upgrades from truly antique (pre-oldstable) releases.
* patches/nonlinear_extended.diff: Add menu entry for Doniach-Sunjic peak
  fitting.  (Closes: #583966)
* Backed out subscript-superscript-scale.diff pending coordination with
  upstream, to avoid distro-specific incompatibilities.
* compat: Increment to debhelper v7.
* Convert to source format 3.0 (quilt).  Replace uuencoded icons with 
  their decoded PNG forms; clean out the associated decoding and patching
  logic from rules, and remove Build-Depends on sharutils and quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#####################################################
 
2
# Makefile for Grace                                #
 
3
#####################################################
 
4
# You should not change anything here.              #
 
5
#####################################################
 
6
 
 
7
TOP=..
 
8
 
 
9
include $(TOP)/Make.conf
 
10
 
 
11
.SUFFIXES : .c $(O)
 
12
 
 
13
GRBATCH=gracebat$(EXE)
 
14
 
 
15
GRACECLI=grace$(EXE)
 
16
 
 
17
CEPHES_LIB=$(TOP)/cephes/libcephes.a
 
18
 
 
19
CFLAGS=$(CFLAGS0) -I$(TOP) -I. $(T1_INC) $(XBAE_INC) $(CPPFLAGS) $(GUI_FLAGS)
 
20
 
 
21
LIBS=$(GUI_LIBS) $(CEPHES_LIB) $(NETCDF_LIBS) $(FFTW_LIB) \
 
22
        $(T1_LIB) $(PDF_LIB) $(JPEG_LIB) $(PNG_LIB) $(Z_LIB) \
 
23
        $(NOGUI_LIBS) $(DL_LIB)
 
24
 
 
25
PREFS=-DGRACE_HOME=\"$(GRACE_HOME)\" -DGRACE_PRINT_CMD=\"$(PRINT_CMD)\" \
 
26
        -DGRACE_EDITOR=\"$(GRACE_EDITOR)\" \
 
27
        -DGRACE_HELPVIEWER=\"$(GRACE_HELPVIEWER)\" \
 
28
        -DCCOMPILER=\"'$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS)'\" 
 
29
 
 
30
all : $(GRACE)
 
31
 
 
32
 
 
33
include Make.common
 
34
 
 
35
$(GROBJS) $(GUIOBJS) $(PARS_O) buildinfo$(O) : $(TOP)/config.h
 
36
 
 
37
include Make.dep
 
38
 
 
39
xmgrace$(EXE) : $(GROBJS) $(PARS_C) $(GUIOBJS) $(CEPHES_LIB)
 
40
        $(CC) $(CFLAGS) $(GROBJS) $(GUIOBJS) -o $@ $(LDFLAGS) $(LIBS)
 
41
 
 
42
grace$(EXE) : $(GROBJS) $(PARS_C) $(CEPHES_LIB)
 
43
        $(CC) $(CFLAGS) $(GROBJS) -o $@ $(LDFLAGS) $(LIBS)
 
44
 
 
45
 
 
46
buildinfo$(EXE) : buildinfo$(O)
 
47
        $(CC) $(CFLAGS) $? -o $@ $(LDFLAGS) $(GUI_LIBS) $(T1_LIB) $(JPEG_LIB) $(PNG_LIB) $(Z_LIB) $(NOGUI_LIBS)
 
48
 
 
49
buildinfo$(O) : $(TOP)/Make.conf
 
50
        $(CC) $(CFLAGS) $(PREFS) -c buildinfo.c -o $@
 
51
 
 
52
buildinfo.h : buildinfo$(EXE) $(GRSRCS) $(GUISRCS)
 
53
        $(RM) t.h
 
54
        ./buildinfo$(EXE) > t.h
 
55
        mv t.h $@
 
56
 
 
57
$(PARS_C) : $(PARS_Y)
 
58
        $(YACC) -t $?
 
59
        mv y.tab.c $@
 
60
 
 
61
 
 
62
install : $(GRACE)
 
63
        $(MKINSTALLDIRS) $(DESTDIR)$(GRACE_HOME)/bin
 
64
        $(INSTALL_PROGRAM) -s $(GRACE) $(DESTDIR)$(GRACE_HOME)/bin/$(GRACE)
 
65
        cd $(DESTDIR)$(GRACE_HOME)/bin; $(RM) $(GRBATCH); $(LN_S) $(GRACE) $(GRBATCH)
 
66
 
 
67
tests : dummy
 
68
 
 
69
$(DESTDIR)$(GRACE_HOME)/bin/$(GRACE) : $(GRACE)
 
70
        $(MAKE) install
 
71
 
 
72
links : $(DESTDIR)$(GRACE_HOME)/bin/$(GRACE)
 
73
        $(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/bin
 
74
        cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRACE); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRACE)
 
75
        cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRBATCH); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRBATCH)
 
76
        cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRACECLI); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRACECLI)
 
77
 
 
78
clean : 
 
79
        $(RM) $(GROBJS) $(GUIOBJS) $(PARS_O) buildinfo.h buildinfo$(O) buildinfo$(EXE)
 
80
 
 
81
distclean : clean
 
82
        $(RM) $(GRACE) tags *.orig *.*gr .gdb_history t1lib.log
 
83
 
 
84
devclean : distclean
 
85
        $(RM) $(PARS_C)
 
86
 
 
87
depend :
 
88
        echo "# Generated automatically by \`make depend'" > Make.dep
 
89
        $(CC) $(CFLAGS) -MM $(GRSRCS) $(GUISRCS) $(PARS_C) buildinfo.c \
 
90
                | sed 's/\.o:/\$$(O)\ :/g' >> Make.dep
 
91
 
 
92
tags : $(GRSRCS) $(GUISRCS) $(PARS_Y)
 
93
        ctags $(GRSRCS) $(GUISRCS) $(PARS_Y)
 
94
 
 
95
dummy :
 
96
 
 
97
# DO NOT DELETE