From a9baddd7d07b9fe15e212985a808a79773ec72e4 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 19 Mar 2011 22:26:06 -0400 Subject: initial check-in, taken from old libc svn repo with significant additions --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5cccb18 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ + +SRCS = $(wildcard *.c) +OBJS = $(SRCS:.c=.o) + +CFLAGS = -std=c99 -Os -fno-builtin -D_XOPEN_SOURCE=700 +LDFLAGS = -static +LIBS = -lrt -lpthread -lrt -lm + +-include config.mak + +all: testsuite + +testsuite: $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + +%.o: %.c + $(CC) $(CFLAGS) -o $@ -c $< + +clean: + rm -f $(OBJS) testsuite + +relink: + rm -f testsuite + make all + +test: testsuite + ./testsuite + +retest: relink test -- cgit v1.2.1