aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/Makefile
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-09-04 09:29:08 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-09-04 09:29:08 +0000
commitba9cd4f93ef991fa3794d333e8da19878df06e2d (patch)
treed0870ebda361f8f07f930053403d832473824e6b /runtime/Makefile
parent601569c2e0c9ec4748eefcbdb9f62c93f8aa822c (diff)
downloadcompcert-kvx-ba9cd4f93ef991fa3794d333e8da19878df06e2d.tar.gz
compcert-kvx-ba9cd4f93ef991fa3794d333e8da19878df06e2d.zip
Simplified stdlib wrapper; use it only under MacOS X
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1502 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'runtime/Makefile')
-rw-r--r--runtime/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/Makefile b/runtime/Makefile
index 5f1ddc60..ef8e21b2 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -1,19 +1,27 @@
include ../Makefile.config
CFLAGS=-O1 -g -Wall
-OBJS=stdio.o calloc.o
+OBJS=stdio.o
LIB=libcompcert.a
INCLUDES=stdio.h
+ifeq ($(strip $(NEED_STDLIB_WRAPPER)),true)
+all: $(LIB) $(INCLUDES)
+else
+all:
+endif
+
$(LIB): $(OBJS)
rm -f $(LIB)
ar rcs $(LIB) $(OBJS)
-stdio.o: stdio.h
-
clean:
rm -f *.o $(LIB)
+ifeq ($(strip $(NEED_STDLIB_WRAPPER)),true)
install:
install -d $(LIBDIR)
install -c $(LIB) $(INCLUDES) $(LIBDIR)
+else
+install:
+endif