aboutsummaryrefslogtreecommitdiff
path: root/src/graph/viewman/Makefile.in
blob: 7d02bbeddf8f0c33d28e5ef553fd5ffb2a725a3d (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
# 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)

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=$@ $<

$(axiom_target_libdir)/viewman$(EXEEXT): $(viewman_objects) $(viewman_DEPENDENCIES)
	$(LINK) -o $@ $(viewman_objects) $(viewman_LDFLAGS) \
		$(AXIOM_X11_LDFLAGS)

mostlyclean-local:

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

distclean-local: clean-local