Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/cliquer/patches/Makefile.patch
8822 views
1
diff -ur src/Makefile src.patched/Makefile
2
--- src/Makefile 2010-02-16 05:26:57.000000000 +0100
3
+++ src.patched/Makefile 2011-04-26 09:46:41.000000000 +0200
4
@@ -1,14 +1,17 @@
5
6
##### Configurable options:
7
8
+# Don't need to set any of these compiler variables. They have already been
9
+# set when running SAGE_ROOT/local/bin/sage-env as part of installing a
10
+# package.
11
## Compiler:
12
-CC=gcc
13
+#CC=gcc
14
#CC=cc
15
16
## Compiler flags:
17
18
# GCC: (also -march=pentium etc, for machine-dependent optimizing)
19
-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
20
+#CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
21
22
# GCC w/ debugging:
23
#CFLAGS=-Wall -g -DINLINE=
24
@@ -29,14 +32,14 @@
25
##### End of configurable options
26
27
28
-all: cl
29
+all: libcliquer.so
30
31
32
testcases: testcases.o cliquer.o graph.o reorder.o
33
$(CC) $(LDFLAGS) -o $@ testcases.o cliquer.o graph.o reorder.o
34
35
-cl: cl.o cliquer.o graph.o reorder.o
36
- $(CC) $(LDFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
37
+libcliquer.so: cl.o cliquer.o graph.o reorder.o
38
+ $(CC) $(LDFLAGS) $(SAGESOFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
39
40
41
cl.o testcases.o cliquer.o graph.o reorder.o: cliquer.h set.h graph.h misc.h reorder.h Makefile cliquerconf.h
42
43