move config.mak to config.mak.def (so user can freely change it)
authorSzabolcs Nagy <nsz@port70.net>
Sun, 21 Jul 2013 21:50:16 +0000 (21:50 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 21 Jul 2013 21:50:16 +0000 (21:50 +0000)
Makefile
README
config.mak [deleted file]
config.mak.def [new file with mode: 0644]

index 3383bad..b65c4d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,13 @@ SPEC_PATTERNS:=src/common/% src/api/% src/math/%
 CFLAGS:=-Isrc/common
 LDLIBS:=src/common/libtest.a
 
--include config.mak
-
 all:
 %.mk:
 
+config.mak:
+       cp config.mak.def $@
+-include config.mak
+
 define template
 $(1).BINS := $(1) $(1)-static
 D:=$$(dir $(1))
diff --git a/README b/README
index 3a023f3..c4ece08 100644 (file)
--- a/README
+++ b/README
@@ -2,6 +2,7 @@ libc-test is developed as part of the musl project
 http://www.musl-libc.org/
 
 configuring:
+       cp config.mak.def config.mak
        edit config.mak
 build and run tests:
        make
diff --git a/config.mak b/config.mak
deleted file mode 100644 (file)
index 8249b9b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-CFLAGS += -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow
-CFLAGS += -Wno-unknown-pragmas -fno-builtin -frounding-math
-CFLAGS += -g
-LDFLAGS += -g
-LDLIBS += -lpthread -lm -lrt
-
-# glibc specific settings
-CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-LDLIBS += -lcrypt -ldl -lresolv -lutil
-
-AR      = $(CROSS_COMPILE)ar
-RANLIB  = $(CROSS_COMPILE)ranlib
-
diff --git a/config.mak.def b/config.mak.def
new file mode 100644 (file)
index 0000000..8249b9b
--- /dev/null
@@ -0,0 +1,13 @@
+CFLAGS += -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow
+CFLAGS += -Wno-unknown-pragmas -fno-builtin -frounding-math
+CFLAGS += -g
+LDFLAGS += -g
+LDLIBS += -lpthread -lm -lrt
+
+# glibc specific settings
+CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+LDLIBS += -lcrypt -ldl -lresolv -lutil
+
+AR      = $(CROSS_COMPILE)ar
+RANLIB  = $(CROSS_COMPILE)ranlib
+