-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.in
More file actions
82 lines (72 loc) · 2.8 KB
/
Copy pathMakefile.in
File metadata and controls
82 lines (72 loc) · 2.8 KB
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
# This Makefile is used to create the example loadable module.
# It also illustrates how to take advantage of configuration
# exported by Tcl to set up Makefiles for shared libraries.
#
# SCCS: @(#) Makefile.in 1.5 97/08/14 19:01:21
DLLFILE = shape04.dll
EXEFILE = shapewish
WIN_OBJS = shapeWinImpl.o
GENERIC_OBJS = shape.o
GENERIC_SRCS = $(GENERIC_DIR)/shape.c
WIN_SRCS = $(WIN_DIR)/shapeWinImpl.c
OBJS = $(GENERIC_OBJS) $(WIN_OBJS)
SRCS = $(GENERIC_SRCS) $(WIN_SRCS)
# The directory containing the Tcl library archive file appropriate
# for this version of Tk:
TCL_BIN_DIR = @TCL_BIN_DIR@
# Libraries to use when linking:
LIBS = @TCL_LIB_SPEC@ @TCL_LIBS@ -lc
#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in. You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------
CC = @CC@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_LD = @SHLIB_LD@
SHLIB_SUFFIX = @SHLIB_SUFFIX@
TCL_INCLUDE_DIR = @TCL_INCLUDE@
TK_INCLUDE_DIR = @TK_INCLUDE@
TK_XINCLUDES = @TK_XINCLUDES@
VPATH = @srcdir@
TK_LIB_SPEC = @TK_LIB_SPEC@
TCL_LIB_SPEC = @TCL_LIB_SPEC@
TK_LIBS = @TK_LIBS@
TCL_SRC_DIR = @TCL_SRC_DIR@
TK_SRC_DIR = @TK_SRC_DIR@
SRC_DIR = @srcdir@
TOP_DIR = @srcdir@/..
GENERIC_DIR = $(TOP_DIR)/generic
WIN_DIR = $(TOP_DIR)/win
INCLUDE_DIR = $(TOP_DIR)/include
# ----------------------------------------------------------------------
CFLAGS = -g -DSHAPE_PHOTO=@SHAPE_PHOTO@
CC_SWITCHES = $(CFLAGS) ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
-I${INCLUDE_DIR} -I${GENERIC_DIR} -I${WIN_DIR} \
-I${TK_INCLUDE_DIR} ${TK_XINCLUDES} -I${TCL_INCLUDE_DIR} \
-I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/unix \
-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/unix
# ----------------------------------------------------------------------
all: @PRIMARY_TARGET@
$(OBJS): $(INCLUDE_DIR)/shape.h $(GENERIC_DIR)/shapeInt.h
shape.o: $(GENERIC_DIR)/shape.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/shape.c
tkAppInit.o: $(GENERIC_DIR)/tkAppInit.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkAppInit.c
shapeWinImpl.o: $(WIN_DIR)/shapeWinImpl.c
$(CC) -c $(CC_SWITCHES) $(WIN_DIR)/shapeWinImpl.c
# ----------------------------------------------------------------------
$(DLLFILE): $(OBJS)
${SHLIB_LD} -o $@ $^ @SHLIB_LD_LIBS@
$(EXEFILE): $(OBJS) tkAppInit.o
$(CC) -o $@ $^ @SHLIB_LD_LIBS@ ${TK_LIB_SPEC} ${TCL_LIB_SPEC} ${TK_LIBS}
# ----------------------------------------------------------------------
clean:
rm -f *.o *.a $(DLLFILE) $(EXEFILE) core
distclean: clean
rm -f Makefile config.cache config.log config.status
# ----------------------------------------------------------------------
Makefile: Makefile.in config.status
./config.status
depend:
makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)