aboutsummaryrefslogtreecommitdiff
path: root/src/graph/viewAlone/Makefile.in
blob: deedc596031c8488fcd233c8f1c17e482ebec96b (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
# 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 = viewAlone$(EXEEXT)

viewAlone_sources = viewAlone.c spoonComp.c spoon2D.c

viewAlone_SOURCES = $(addsuffix .pamphlet, $(viewAlone_sources))

viewAlone_objects = $(viewAlone_sources:.c=.lo)

viewAlone_LDADD = $(axiom_target_libdir)/libspad.la
viewAlone_DEPENDENCIES =

pamphlets = Makefile.pamphlet $(viewAlone_SOURCES)

subdir = src/graph/viewAlone/

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

HEADERS= $(srcdir)/viewAlone.h     ${LINC}/component.h ${LINC}/view2D.h  \
         ${LINC}/view3D.h      ${LINC}/tube.h      ${LINC}/actions.h \
         ${LINC}/viewCommand.h 

.PHONY: all all-ax all-viewAlone
all: all-ax

all-ax all-viewAlone: stamp
	@echo finished $(builddir)

stamp: $(axiom_target_bindir)/viewAlone$(EXEEXT)
	@rm -f stamp
	$(STAMP) stamp

$(axiom_target_bindir)/viewAlone$(EXEEXT): $(viewAlone_objects) \
		 $(viewAlone_DEPENDENCIES)
	$(LINK) -o $@ $(viewAlone_objects) $(viewAlone_LDADD) \
		$(AXIOM_X11_LDFLAGS)

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

%.lo: $(HEADERS)

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

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

mostlyclean-local:

clean-local: mostlyclean-local
	@rm -f $(viewAlone_sources) $(viewAlone_objects)
	@rm -f $(axiom_target_bindir)/viewAlone$(EXEEXT)

distclean-local: clean-local