aboutsummaryrefslogtreecommitdiff
path: root/src/graph/viewman/Makefile.pamphlet
blob: ec05317ee5da2f1138096b2eaaa56777648096dc (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
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
%% Oh Emacs, this is a -*- Makefile -*-, so give me tabs.
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{src/graph/viewman Makefile}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
\section{environment}
<<environment>>=
# local include files shared by graphics
LINC=	$(axiom_src_srcdir)/graph/include

# global include files shared by everyone 
GINC=	$(axiom_src_srcdir)/include

build_libdir = $(abs_top_builddir)/src/lib

bin_PROGRAMS = viewman$(EXEEXT)

viewman_sources = cleanup.c fun2D.c fun3D.c make2D.c make3D.c \
		makeGraph.c readView.c sselect.c viewman.c

viewman_SOURCES = $(addsuffix .pamphlet, $(viewman_sources))

viewman_objects = $(viewman_sources:.c=.lo)

viewman_headers = $(srcdir)/viewman.h \
		$(addprefix $(axiom_src_srcdir)/graph/include/,\
			component.h view2D.h view3D.h tube.h \
			actions.h viewCommand.h) \
		$(axiom_src_srcdir)/include/com.h


viewman_DEPENDENCIES =
viewman_LDFLAGS = $(axiom_target_libdir)/libspad.la

pamphlets = Makefile.pamphlet $(viewman_SOURCES)
@

\section{viewman}
<<viewman>>=
$(axiom_target_libdir)/viewman$(EXEEXT): $(viewman_objects) $(viewman_DEPENDENCIES)
	$(LINK) -o $@ $(viewman_objects) $(viewman_LDFLAGS) \
		$(AXIOM_X11_LDFLAGS)
@

<<*>>=
<<environment>>

subdir = src/graph/viewman/

AXIOM_CFLAGS = ${CCF} ${AXIOM_X11_CFLAGS} -I${LINC} -I${GINC} -I$(srcdir) \
			$(axiom_includes)

.PHONY: all all-ax all-viewman
all: all-ax

all-ax all-viewman: stamp
	@ echo 30 finished $(srcdir)

stamp: $(axiom_target_libdir)/viewman$(EXEEXT)
	@rm -f stamp
	$(STAMP) stamp


.PRECIOUS: %.c
.PRECIOUS: %.lo

%.lo: $(viewman_HEADERS)

%.lo: %.c $(axiom_c_macros_h)
	$(COMPILE) -o $@ $(CFLAGS) $(AXIOM_CFLAGS) $<

%.c: $(srcdir)/%.c.pamphlet
	$(axiom_build_document) --tangle --output=$@ $<

<<viewman>>

mostlyclean-local:

clean-local: mostlyclean-local
	@rm -f $(viewman_sources) $(viewman_objects)
	@rm -f $(axiom_target_libdir)/viewman$(EXEEXT)

distclean-local: clean-local

@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}