-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile.in
91 lines (65 loc) · 1.62 KB
/
Makefile.in
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
#
# Makefile for the package Odc
#
include ../makedirs
# (makedirs should define TCL_INCDIR and TCL_LIBDIR)
O = @OBJ_SUFFIX@
.SUFFIXES: .c .C $O @LIB_SUFFIX@
#
# machine dependencies
#
#
# additional objects to create an executable
#
TCL_LIBS = @TCL_LIBS@
MACH_OBJS = $(TCL_LIBS) @HQP_DOCP_MACH_OBJS@
# libraries required for an application using HQP
HQP_LIBS = @HQP_LIBS@
LFLAG = @LFLAG@
#
# flag to add a path for the run-time loader
# (e.g. -R -Wl,-rpath, -Wl,+b,)
# -- or just use $LFLAG resulting in no run-path
# and make libtcl, libhqp, and libomu known through
# the environment variable LD_LIBRARY_PATH --
RFLAG = @RFLAG@
#
# paths
#
HQP_PREFIX = @prefix@
HQP_INCDIR = -I.. -I../iftcl -I../hqp \
-I${HQP_PREFIX}/include/hqp
HQP_LIBDIR = $(LFLAG)../lib $(RFLAG)../lib \
$(LFLAG)${HQP_PREFIX}/lib $(RFLAG)${HQP_PREFIX}/lib
#
# compiler and flags
#
CXX = @CXX@
CC = @CC@
CFLAGS = @WFLAG@ -DDEBUG \
$(HQP_INCDIR) $(TCL_INCDIR)
LDFLAGS = $(HQP_LIBDIR) $(TCL_LIBDIR)
#
# machine independent part
#
GMALLOC_O = @GMALLOC_O@
SRCS = Docp_Main.C \
Prg_DID.C
OBJS = $(SRCS:.C=$O) $(GMALLOC_O)
RESULT = docp
all: $(OBJS) Makefile
$(CXX) -o $(RESULT) $(OBJS) \
@LDFLAGS_START@ $(LDFLAGS) $(HQP_LIBS) $(MACH_OBJS)
gmalloc $(GMALLOC_O): $(GMALLOC_O:$O=.c)
PWD=`pwd`; cd `dirname $(GMALLOC_O)`; \
make `basename $(GMALLOC_O)`; cd $(PWD)
.C$O:
$(CXX) -c @CXXFLAGS@ $(CFLAGS) $<
.c$O:
$(CC) -c $(CFLAGS) $<
clean:
rm -f $(RESULT)@EXE_SUFFIX@ *.o *.obj *.[pi]db *.ilk \
*~ *core *stackdump
depend:
makedepend -- $(CFLAGS) -- $(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.