aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Anvin <hpa@tazenda.(none)>2005-12-08 11:29:53 -0800
committerPeter Anvin <hpa@tazenda.(none)>2005-12-08 11:29:53 -0800
commita9d918f61492b91efd89dc8119a57a1a010e5376 (patch)
tree2401329cbd7d6bd42b0cad22d3e20e55c45d8c5a
parenteffaa8733130df5347a57610b2c6b14ee8ea07b5 (diff)
downloadlibucd-a9d918f61492b91efd89dc8119a57a1a010e5376.tar.gz
Move configuration to MCONFIG file
-rw-r--r--MCONFIG17
-rw-r--r--Makefile19
-rw-r--r--perfect/Makefile5
3 files changed, 19 insertions, 22 deletions
diff --git a/MCONFIG b/MCONFIG
new file mode 100644
index 0000000..ab869ff
--- /dev/null
+++ b/MCONFIG
@@ -0,0 +1,17 @@
+CC = cc
+CFLAGS = -g -O3 -I. -W -Wall -DHAVE_PTHREAD_H
+PICFLAGS = -fPIC
+LDFLAGS = -lpthread
+AR = ar
+RANLIB = ranlib
+LIB_FILE = libucd.a
+SO_FILE = libucd.so
+SO_NAME = libucd.so.0
+SOFLAGS = -shared -Wl,-soname,$(SO_NAME)
+
+HOST_CC = cc
+HOST_CFLAGS = -g -O -I. -W -Wall
+HOST_LDFLAGS =
+HOST_LIBS =
+
+PERL = time perl
diff --git a/Makefile b/Makefile
index f02ff1e..e1ad474 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,4 @@
-CC = cc
-CFLAGS = -g -O3 -I. -W -Wall -DHAVE_PTHREAD_H
-PICFLAGS = -fPIC
-LDFLAGS = -lpthread
-AR = ar
-RANLIB = ranlib
-LIB_FILE = libucd.a
-SO_FILE = libucd.so
-SO_NAME = libucd.so.0
-SOFLAGS = -shared -Wl,-soname,$(SO_NAME)
-
-HOST_CC = cc
-HOST_CFLAGS = -g -O -I. -W -Wall
-HOST_LDFLAGS =
-HOST_LIBS =
-
-PERL = time perl
-
+include MCONFIG
#
# Headers included from libucd_int.h
diff --git a/perfect/Makefile b/perfect/Makefile
index c398ef1..7e478aa 100644
--- a/perfect/Makefile
+++ b/perfect/Makefile
@@ -1,7 +1,4 @@
-HOST_CC = cc
-HOST_CFLAGS = -g -O
-HOST_LDFLAGS =
-HOST_LIBS += -lm
+include ../MCONFIG
.c.o:
$(HOST_CC) $(HOST_CFLAGS) -c $<