File: Makefile.in

package info (click to toggle)
ftools-fv 5.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,072 kB
  • sloc: tcl: 50,774; ansic: 17,858; exp: 2,004; makefile: 172; cpp: 169; sh: 109; csh: 10
file content (138 lines) | stat: -rw-r--r-- 4,473 bytes parent folder | download | duplicates (4)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# POW makefile.in
# $Id$
#
#----------------------------------------------------------------------------
# Definitions:
#----------------------------------------------------------------------------
LIBRARY		= pow

CFILES		= PowCanvCurve.c PowColormap.c PowCommands.c \
		  PowCreateCurve.c PowCreateData.c PowCreateGraph.c \
		  PowCreateImage.c PowCreateVector.c \
		  PowEventHandlers.c PowGrid.c PowInit.c PowUtils.c PowWCS.c \
		  Visu_Init.c Visu_colors.c Visu_generic.c Visu_lut.c \
		  Visu_shared_colors.c Visu_tkImgPict.c

HEADERS		= pow.h tkpict.h

SCRIPTS		= POWplot

TCLFILES	= Notifications.tcl POWplot.tcl PowCmdsClass.tcl Region.tcl \
		  RegionList.tcl Shape.tcl html_library.tcl notebook.tcl \
		  pow.tcl powEdit.tcl powImgProbe.tcl powMovie.tcl \
		  powProfile.tcl powRgn.tcl powRuler.tcl powScript.tcl \
		  powXRange.tcl visu_widgets.tcl

EXTRAS		= tclIndex mhh7.gif stretcharrow.xbm \
		  About.html Blinking.html Color.html Contours.html \
		  DefaultOptions.html Edit.html EditGraphs.html \
		  EditObjects.html File.html Labels.html Moving_Graphs.html \
		  Options.html Overview.html PrintControl.html POWAPI.html \
		  Probe.html Profile.html ROI.html Regions.html Ruler.html \
		  Scripting.html Tools.html XRange.html

OBJECTS         = ${CFILES:.c=.o}
SHARED_OBJ      = ${OBJECTS}

STATIC_LIB	= lib${LIBRARY}.a
SHARED_LIB	= lib${LIBRARY}${SHLIB_SUFFIX}

IFLAGS		= -I${TCL_INC_PATH} -I${TK_INC_PATH} -I${TK_INC_PATH}/../unix ${XINC}

#----------------------------------------------------------------------------
# Configurable macros:
#----------------------------------------------------------------------------
INSTALLDIR	= $(DESTDIR)@prefix@
CC		= @CC@
RANLIB		= @RANLIB@
CPPFLAGS	= @CPPFLAGS@
CFLAGS		= @CFLAGS@
#CFLAGS		= -g -DTCL_MEM_DEBUG
DEFS		= @DEFS@ -DVISU_LIBRARY=\"${INSTALLDIR}/lib/pow\" 
C_LIB_OPTION	= shared
SHLIB_SUFFIX	= @SHLIB_SUFFIX@
SHLIB_LD	= @SHLIB_LD@
LD_FLAGS	= @LD_FLAGS@ @LDFLAGS@

TCL_INC_PATH	= /usr/include/tcl
TCL_LIB_PATH	= @TCL_PATH@
TCL_LIB		= @TCL_LIB@
TK_INC_PATH	= /usr/include/tcl/tk-private/generic/
TK_LIB_PATH	= @TK_PATH@
TK_LIB		= @TK_LIB@
XINC		= @XINCLUDES@
XLIBS		= @XLIBS@
SHLIB_LD_LIBS	= @LIBS@ @SHLIB_LD_LIBS@ -ltclstub -ltkstub -lwcs -lcfitsio ${XLIBS}

#----------------------------------------------------------------------------
# Targets:
#----------------------------------------------------------------------------
all: ${C_LIB_OPTION}

${STATIC_LIB}: static

${SHARED_LIB}: shared

static: ${OBJECTS}
	rm -f ${STATIC_LIB}
	ar cr ${STATIC_LIB} ${OBJECTS}
	${RANLIB} ${STATIC_LIB}

shared: ${SHARED_OBJ}
	${SHLIB_LD} ${LD_FLAGS} ${SHARED_OBJ} ${SHLIB_LD_LIBS} -o ${SHARED_LIB}

install:
	@if [ ! -d ${INSTALLDIR}/lib/tcltk/${DEB_HOST_MULTIARCH}/POW ]; then \
		echo "mkdir ${INSTALLDIR}/lib/tcltk/${DEB_HOST_MULTIARCH}/POW"; \
		mkdir -p ${INSTALLDIR}/lib/tcltk/${DEB_HOST_MULTIARCH}/POW; \
	fi
	@if [ "x${C_LIB_OPTION}" = xstatic ]; then \
		echo "cp ${STATIC_LIB} ${INSTALLDIR}/lib/"; \
		cp ${STATIC_LIB} ${INSTALLDIR}/lib/; \
	else \
		echo "cp ${SHARED_LIB} ${INSTALLDIR}/lib/tcltk/${DEB_HOST_MULTIARCH}/POW/"; \
		cp ${SHARED_LIB} pkgIndex.tcl ${INSTALLDIR}/lib/tcltk/${DEB_HOST_MULTIARCH}/POW/; \
	fi
	mkdir -p ${INSTALLDIR}/bin
	@for file in ${SCRIPTS}; do \
		echo "cp $$file ${INSTALLDIR}/bin/"; \
		cp $$file ${INSTALLDIR}/bin/; \
	done
	mkdir -p ${INSTALLDIR}/include
	@for file in ${HEADERS}; do \
		echo "cp $$file ${INSTALLDIR}/include/"; \
		cp $$file ${INSTALLDIR}/include/; \
	done
	mkdir -p ${INSTALLDIR}/share/ftools/POW
	@for file in ${TCLFILES} tclIndex; do \
		echo "cp $$file ${INSTALLDIR}/share/ftools/POW/"; \
		cp $$file ${INSTALLDIR}/share/ftools/POW/; \
	done

clean:
	-rm -rf *.o *~ ${STATIC_LIB} ${SHARED_LIB} so_locations

distclean: clean
	-rm -f config.cache config.status config.log Makefile

#----------------------------------------------------------------------------
# Make target which outputs the list of the .o contained in the POW lib
# usefull to build a single big shared library containing Tcl/Tk and other
# extensions.  used for the Tcl Plugin. 
#----------------------------------------------------------------------------
tags:	${CFILES} ${TCLFILES}
	etags ${CFILES}
	mv TAGS CTAGS
	tcltags ${TCLFILES}
	cat CTAGS >> TAGS
	rm CTAGS

powLibObjs:
	@echo ${OBJECTS} orbit.o 

# This target actually builds the objects needed for the lib in the above case
objs: ${OFILES} orbit.o 


.c.o:
	${CC} -c ${CPPFLAGS} ${CFLAGS} ${DEFS} ${IFLAGS} $<