File: Imakefile

package info (click to toggle)
sciplot 1.36-19
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 764 kB
  • sloc: ansic: 15,235; makefile: 24
file content (98 lines) | stat: -rw-r--r-- 2,631 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
XCOMM Imakefile for widget demo programs

EXTRA_DEFINES = -g -O3 -Wall $(PICFLAG)

#ifdef AIXArchitecture
    CC = c89
    EXTRA_DEFINES = -g
    CDEBUGFLAGS = 
    HDOC = hdoc
#endif

#ifdef Ppc64Architecture
#define DefaultNotLDOptions     -mminimal-toc
NOTLDOPTIONS = DefaultNotLDOptions
LDOPTIONS := $(filter-out $(NOTLDOPTIONS),$(LDOPTIONS))
#endif

MOTIF = $(LESSTIF) -lXm

MOTIFDEPS = $(DEPXMLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
MOTIFLIBS = $(MOTIF) $(XMULIB) $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = -lm
CDEBUGFLAGS = 

WIDGET = SciPlot
#PROGRAMS = sciplot realtime
TARFILE = sciplot

#SRCS = SciPlot.c SciPlotUtil.c xyplot.c realtime.c
SRCS = SciPlot.c SciPlotUtil.c
HDRS = SciPlot.h SciPlotP.h SciPlotUtil.h
OBJS = $(SRCS:.c=.o)
#PLOTSRCS = SciPlot.c SciPlotUtil.c xyplot.c
PLOTSRCS = SciPlot.c SciPlotUtil.c
PLOTOBJS= $(PLOTSRCS:.c=.o)
#RTSRCS = SciPlot.c SciPlotUtil.c realtime.c
RTSRCS = SciPlot.c SciPlotUtil.c
RTOBJS= $(RTSRCS:.c=.o)

DOCS = SciPlot. SciPlotProg. SciPlotDemo. gpl.
HOBJS = $(DOCS:.=.html)
HSRCS = $(DOCS:.=.hdoc)

INFOFILES = ANNOUNCE CHANGES LICENSE README Makefile.noImake Imakefile data.txt

MANPAGES = $(INFOFILES) $(HOBJS) *.gif

VERSION = $(SRCS) $(HDRS) $(MANPAGES)
TARFILES = $(VERSION) $(HSRCS)

XCOMM ##########################################################################
XCOMM Definitions for generating the documentation
.SUFFIXES:	.html .hdoc
.hdoc.html:
	$(HDOC) $*.hdoc > $*.html


AllTarget(shared static)

#NormalProgramTarget(sciplot,$(PLOTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES))
#NormalProgramTarget(realtime,$(RTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES))

doc:	$(HOBJS) $(HDOC)
	@echo "Updated html."

shared: $(PLOTOBJS)
	ld -shared  -o libsciplot.so.$(MI_N) SciPlot.o SciPlotUtil.o \
 $(LDOPTIONS) $(MOTIFLIBS) $(LDLIBS) $(SYS_LIBRARIES) $(EXTRA_LOAD_FLAGS) \
    -soname libsciplot.so.$(MA_N) -lc 

static: $(PLOTOBJS)
	ar ru  libsciplot.a  SciPlot.o SciPlotUtil.o 
	ranlib libsciplot.a

version:
	-@STUFF=../$(WIDGET)-`fgrep _WIDGET_VERSION $(WIDGET).h|cut -f2`;\
	echo Making version directory $$STUFF ;\
	mkdir $$STUFF ;\
	cp $(VERSION) $$STUFF ;\
	ls -l $$STUFF

tar:
	rm -f $(TARFILE).tar $(TARFILE).tar.gz
	tar cfv $(TARFILE).tar $(TARFILES)
	gzip $(TARFILE).tar

taz:	$(SRCS)
	rm -f $(TARFILE).tar $(TARFILE).tar.gz
	tar cfv $(TARFILE).tar $(TARFILES)
	compress $(TARFILE).tar

# Dependencies:

libsciplot.so: SciPlot.c SciPlotP.h SciPlot.h SciPlotUtil.c SciPlotUtil.h
SciPlot.o: SciPlot.c SciPlotP.h SciPlot.h
SciPlotUtil.o: SciPlotUtil.c SciPlotUtil.h
#xyplot.o: xyplot.c SciPlot.h SciPlotUtil.h
#realtime.o: realtime.c SciPlot.h SciPlotUtil.h