File: yMakefile

package info (click to toggle)
ncl 6.3.0-13
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 196,648 kB
  • ctags: 70,631
  • sloc: ansic: 603,601; fortran: 441,469; sed: 11,222; csh: 8,350; yacc: 4,253; xml: 1,928; sh: 1,526; lex: 1,266; python: 1,067; f90: 652; perl: 479; java: 447; objc: 291; makefile: 109
file content (91 lines) | stat: -rw-r--r-- 2,911 bytes parent folder | download | duplicates (5)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
#	$Id: yMakefile,v 1.14 2010-04-02 16:36:16 brownrig Exp $
#

MYNAME		= cdrivers

INCLUDES	= gksP.h
BASICSRC	= fort_c.c gksc.c transform.c gksP.c argb.c
DEVSRC		= gks_device.c
CTXTSRC		= ctxt_device.c ctxt.c ctxt_conv.c
XSRC		= xdevice.c font.c text.c x_conv.c xattribute.c xcontrol.c \
		xinquiry.c xoutput.c
PSSRC		= psdevice.c ps.c ps_conv.c psfill.c 
PDFSRC          = pdf.c pdfdevice.c pdf_conv.c pdffill.c

PIXSRC 		= pixcontrol.c     pixoutput.c pixdevice.c \
		pix_conv.c       pixattribute.c  pixinquiry.c \
		pixwrite_xwd.c
#ifdef BuildPNG
PNGSRC		=  pixwrite_png.c
PNGOBJ		=  pixwrite_png.o
PNG_DEFINES  	=  -DBuildPNG
#else
#define PNGSRC
#define PNGOBJ
#endif

#ifdef BuildQtEnabled
Qt_DEFINES	= -DBuildQtEnabled
#else
#define Qt_DEFINES
#endif

BASICOBJ	= fort_c.o gksc.o transform.o gksP.o argb.o
DEVOBJ		= gks_device.o
CTXTOBJ		= ctxt_device.o ctxt.o ctxt_conv.o
XOBJ		= xdevice.o font.o text.o x_conv.o xattribute.o xcontrol.o \
		xinquiry.o xoutput.o
PSOBJ		= psdevice.o ps.o ps_conv.o psfill.o
PDFOBJ          = pdf.o pdfdevice.o pdf_conv.o pdffill.o

PIXOBJ 		= pixcontrol.o     pixoutput.o pixdevice.o  \
		pix_conv.o       pixattribute.o  pixinquiry.o \
		pixwrite_xwd.o $(PNGOBJ)

SOURCES		= $(BASICSRC) $(CTXTSRC) $(XSRC) $(PSSRC) $(PDFSRC) $(PIXSRC) $(PNGSRC)
OBJECTS		= $(BASICOBJ) $(DEVOBJ) $(CTXTOBJ) $(XOBJ) $(PSOBJ) $(PDFOBJ) $(PIXOBJ) $(PNGOBJ)

EXTRA_CDEFINES	= $(OS_DEF) $(PNG_DEFINES) $(Qt_DEFINES) -DCTXT -DX11 -DPS -DPDF -DPIX

PartialLibraryTarget(libbasegks.a,$(BASICOBJ))

CAIROOBJ	=  cro_device.o cro.o cro_conv.o gks_device_cairo.o crotiff.o crodisplay.o

OBJECTS_CAIRO	= $(BASICOBJ) $(CTXTOBJ) $(XOBJ) $(PSOBJ) $(PDFOBJ) $(PIXOBJ) $(CAIROOBJ)

#ifdef JIRA1530
CAIROOBJ_XQ_FIX	=  cro_device.o cro_xq_fix.o cro_conv.o gks_device_cairo.o crotiff.o crodisplay.o
OBJECTS_CAIRO_XQ_FIX	= $(BASICOBJ) $(CTXTOBJ) $(XOBJ) $(PSOBJ) $(PDFOBJ) $(PIXOBJ) $(CAIROOBJ_XQ_FIX)

cro_xq_fix.c: cro.c
	$(LN) cro.c cro_xq_fix.c

cro_xq_fix.o: cro_xq_fix.c
	$(CC) -D__JIRA1530__ $(CCOPTIONS) $(ALLDEFINES) -c cro_xq_fix.c
#endif


gks_device_cairo.c: gks_device.c
	$(LN) gks_device.c gks_device_cairo.c

gks_device_cairo.o: gks_device_cairo.c
	$(CC) $(CCOPTIONS) $(ALLDEFINES) -c gks_device_cairo.c

PartialLibraryTarget(libncarg_gks.a,$(OBJECTS_CAIRO))
#ifdef JIRA1530
PartialLibraryTarget(libncarg_gks_xq_fix.a,$(OBJECTS_CAIRO_XQ_FIX))
CleanFilesTarget(cro_xq_fix.c cro_xq_fix.o)
#endif
CleanFilesTarget(gks_device_cairo.c gks_device_cairo.o)

BuildSharedPartialLib(libNGgksCTXT,$(CTXTOBJ),1,0,NullArgument)
BuildSharedPartialLib(libNGgksX,$(XOBJ),1,0,NullArgument)
BuildSharedFromArch(libNGgksPS,$(PSOBJ),1,0,-lm)
BuildSharedPartialLib(libNGgksPDF,$(PDFOBJ),1,0,-lNGgks)

PartialSourceLibraryTarget($(MYNAME),srcncarg_gks.a,$(SOURCES))
BuildIncludes($(INCLUDES),ncarg,..)
InstallTarget($(INCLUDES),$(INSTALL_INC),$(NCARGINCPATH))
DependTarget($(SOURCES))
CleanFilesTarget(gks_device.o)