~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to display/drivers/XDRIVER/Makefile

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
MODULE_TOPDIR = ../../..
3
 
 
4
 
PGM=xdriver
5
 
 
6
 
include $(MODULE_TOPDIR)/include/Make/Platform.make
7
 
include $(MODULE_TOPDIR)/include/Make/Grass.make
8
 
include $(MODULE_TOPDIR)/include/Make/Rules.make
9
 
 
10
 
LIBES = $(DRIVERLIB) $(GISLIB) $(FTLIB) $(ICONVLIB)
11
 
DEPENDENCIES = $(DRIVERDEP) $(GISDEP)
12
 
 
13
 
# if you are compiling under X11R3 add this define
14
 
#R3DEFINE=-DX11R3
15
 
# and comment out this line
16
 
R3DEFINE=
17
 
 
18
 
# For those compiling on Intergraph machines, uncomment the following 2 lines:
19
 
#XCFLAGS=-DINTERGRAPH -DX11R3
20
 
 
21
 
# these are for the CDC mips machine
22
 
#XCFLAGS=-systype bsd43
23
 
#XLDFLAGS=-systype bsd43
24
 
 
25
 
# One user reported that he had to load -lsockstub for SCO-UNIX under X11R3
26
 
# we record his comment here for anyone that may have problems under SCO-UNIX
27
 
# This problem was NOT reported when CWU did the port to SCO-UNIX
28
 
#XEXTRALIBS=-lsockstub
29
 
 
30
 
# On the Silcon Graphics Boxes, the standard XOpenDisplay() fails when
31
 
# trying to display to another machine if the machine is named on
32
 
# the DISPLAY variable instead of it IP address. Loading the -lsun
33
 
# library resolves this problem
34
 
#XEXTRALIBS=-lsun
35
 
 
36
 
EXTRA_CFLAGS=$(XCFLAGS) $(R3DEFINE) -I../../../lib/driver
37
 
 
38
 
OBJS =  \
39
 
        Box.o\
40
 
        Client.o\
41
 
        Color_table.o\
42
 
        Color.o\
43
 
        Draw_bitmap.o\
44
 
        Draw_line.o\
45
 
        Draw_point.o\
46
 
        Get_w_box.o\
47
 
        Get_w_line.o\
48
 
        Get_w_pointer.o\
49
 
        Graph_close.o\
50
 
        Graph_set.o\
51
 
        Line_width.o\
52
 
        Panel.o\
53
 
        Polydots.o\
54
 
        Polygon.o\
55
 
        Polyline.o\
56
 
        Raster.o\
57
 
        Respond.o\
58
 
        Serve_Xevent.o\
59
 
        Set_window.o\
60
 
        Work.o\
61
 
        alloc.o\
62
 
        main.o
63
 
 
64
 
ARCH_OBJS := $(foreach obj,$(OBJS),OBJ.$(ARCH)/$(obj))
65
 
 
66
 
#FREETYPEBASED = Draw_point.o
67
 
#compile if FreeType Lib present:
68
 
#ifneq ($(strip $(FTLIB)),)
69
 
#    OBJS += $(FREETYPEBASED)
70
 
#endif
71
 
 
72
 
default: $(DRIVERDIR)/XDRIVER $(HTMLDIR)/$(PGM).html moncap
73
 
 
74
 
moncap:
75
 
        @if [ -f $(ETC)/monitorcap ] && egrep '^x0' $(ETC)/monitorcap >/dev/null 2>&1 ; then \
76
 
        echo XDRIVER already defined in $(ETC)/monitorcap ; \
77
 
        else \
78
 
        echo adding XDRIVER to $(ETC)/monitorcap ; \
79
 
        cat moncap.entry >> $(ETC)/monitorcap ; \
80
 
        fi
81
 
 
82
 
$(DRIVERDIR)/XDRIVER: $(ARCH_OBJS) $(DEPENDENCIES)
83
 
        $(CC) $(LDFLAGS) -o $@ $(XLDFLAGS) $(LIBPATH) $(ARCH_OBJS) $(LIBES) $(XLIBPATH) $(XLIB) $(XEXTRALIBS) $(MATHLIB) $(XDRLIB)