From: Szabolcs Nagy Date: Sun, 21 Jul 2013 21:50:16 +0000 (+0000) Subject: move config.mak to config.mak.def (so user can freely change it) X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=6ba7f3a0ae53658a9dc59a4bca5db5ce6735bb62;hp=814c6fa7d32244815fd5647d99aaf0e7c27a9905 move config.mak to config.mak.def (so user can freely change it) --- diff --git a/Makefile b/Makefile index 3383bad..b65c4d7 100644 --- 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 --- 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 index 8249b9b..0000000 --- a/config.mak +++ /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 index 0000000..8249b9b --- /dev/null +++ b/config.mak.def @@ -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 +