File: Makefile.in

package info (click to toggle)
snack 2.2.10.20090623-dfsg-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,276 kB
  • ctags: 3,784
  • sloc: ansic: 32,654; sh: 8,558; tcl: 1,086; python: 701; makefile: 564
file content (62 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download | duplicates (12)
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
# The path to the tcl.h header file

TCL_INCPATH = @TCL_SRC_DIR@/generic

# The path to the tk.h header file

TK_INCPATH  = @TK_SRC_DIR@/generic

# The path to the X11 include files

XINCLUDES   = @XINCLUDES@

# Install SQUARE package here

SQUARE_INSTALL_PATH = @SQUARE_INSTALL_PATH@

# Install SQUARE plug-in add-on here

MOZILLA_DIR = @MOZILLA_DIR@

#----------------------------------------------------------------

VERSION = 1.0

CC        = @CC@

INCLUDES  = ${XINCLUDES} -I${TCL_INCPATH} -I${TK_INCPATH} \
	    -I@SNACK_INC_DIR@ @AINC@

CFLAGS    = -O @CFLAGS@ @AFLAG@ ${INCLUDES}

LIBS      = -lc @TK_LIBS@ @ALIB@ @TCL_LIB_SPEC@ @TK_LIB_SPEC@ \
	    -L@SNACK_OBJ_DIR@ @SNACK_STUB_LIB_FLAG@

SHLIB_LD     = @SHLIB_LD@
SHLIB_SUFFIX = @SHLIB_SUFFIX@

all: libsquare${SHLIB_SUFFIX}

OBJS =  square.o

libsquare${SHLIB_SUFFIX}: ${OBJS}
	${SHLIB_LD} ${OBJS} ${LIBS} -o libsquare${SHLIB_SUFFIX} 

install:
	@if [ ! -d ${SQUARE_INSTALL_PATH}/square${VERSION} ] ; then \
	    echo "Making directory ${SQUARE_INSTALL_PATH}/square${VERSION}"; \
	    mkdir ${SQUARE_INSTALL_PATH}/square${VERSION}; \
	    chmod 755 ${SQUARE_INSTALL_PATH}/square${VERSION}; \
        else true; \
        fi;
	cp -f libsquare${SHLIB_SUFFIX} ${SQUARE_INSTALL_PATH}/square${VERSION}/
	cp -f pkgIndex.tcl ${SQUARE_INSTALL_PATH}/square${VERSION}/
	@if [ -d "@MOZILLA_DIR@" ] ; then \
	    cp -rf ${SQUARE_INSTALL_PATH}/square${VERSION} ${MOZILLA_DIR}/tclplug/2.0/; \
	fi;

clean:
	rm -f *.o libsquare${SHLIB_SUFFIX}

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