Debian Codegraph @

CoinMP/examples/Makefile.in

raw
1 # Copyright (C) 2006 International Business Machines and others.
2 # All Rights Reserved.
3 # This file is distributed under the Common Public License.
4
5 # $Id: Makefile.in 726 2006-04-17 04:16:00Z andreasw $
6
7 ##########################################################################
8 # You can modify this example makefile to fit for your own program. #
9 # Usually, you only need to change the five CHANGEME entries below. #
10 ##########################################################################
11
12 EXNAME = example
13
14 # CHANGEME: This should be the name of your executable
15 EXE = $(EXNAME)@EXEEXT@
16
17 # CHANGEME: Here is the name of all object files corresponding to the source
18 # code that you wrote in order to define the problem statement
19 OBJS = $(EXNAME).@OBJEXT@
20
21 # CHANGEME: Additional libraries
22 ADDLIBS =
23
24 # CHANGEME: Additional flags for compilation (e.g., include flags)
25 ADDINCFLAGS =
26
27 # CHANGEME: Directory to the sources for the (example) problem definition
28 # files
29 SRCDIR = @srcdir@
30 VPATH = @srcdir@
31
32 ##########################################################################
33 # Usually, you don't have to change anything below. Note that if you #
34 # change certain compiler options, you might have to recompile the #
35 # COIN package. #
36 ##########################################################################
37
38 COIN_HAS_PKGCONFIG = @COIN_HAS_PKGCONFIG_TRUE@TRUE
39 COIN_CXX_IS_CL = @COIN_CXX_IS_CL_TRUE@TRUE
40 COIN_HAS_DATASTOCHASTIC = @COIN_HAS_DATASTOCHASTIC_TRUE@TRUE
41
42 # C Compiler command
43 CC = @CC@
44
45 # C Compiler options
46 CFLAGS = @CFLAGS@
47
48 # additional C Compiler options for linking
49 CLINKFLAGS = @RPATH_FLAGS@
50
51 # Include directories (we use the CYGPATH_W variables to allow compilation with Windows compilers)
52 ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
53 INCL = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --cflags coinmp`
54 else
55 INCL = @COINMP_CFLAGS_INSTALLED@
56 endif
57 INCL += $(ADDINCFLAGS)
58
59 # Linker flags
60 ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
61 LIBS = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --libs coinmp`
62 else
63 ifeq ($(COIN_CXX_IS_CL), TRUE)
64 LIBS = -link -libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @COINMP_LIBS_INSTALLED@
65 else
66 LIBS = -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@
67 endif
68 endif
69
70 # The following is necessary under cygwin, if native compilers are used
71 CYGPATH_W = @CYGPATH_W@
72
73 all: $(EXE)
74
75 .SUFFIXES: .c .o .obj
76
77 $(EXE): $(OBJS)
78 bla=;\
79 for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
80 $(CC) $(CLINKFLAGS) $(CFLAGS) -o $@ $$bla $(LIBS) $(ADDLIBS)
81
82 clean:
83 rm -rf $(EXE) $(OBJS)
84
85 .c.o:
86 $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
87
88 .c.obj:
89 $(CC) $(CFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`