-# Makefile to build the D runtime library core components for Posix\r
-# Designed to work with GNU make\r
-# Targets:\r
-# make\r
-# Same as make all\r
-# make lib\r
-# Build the common library\r
-# make doc\r
-# Generate documentation\r
-# make clean\r
-# Delete unneeded files created by build process\r
-\r
-LIB_TARGET=libdruntime-core.a\r
-LIB_MASK=libdruntime-core*.a\r
-\r
-CP=cp -f\r
-RM=rm -f\r
-MD=mkdir -p\r
-\r
-ADD_CFLAGS=\r
-ADD_DFLAGS=\r
-\r
-CFLAGS=-O $(ADD_CFLAGS)\r
-#CFLAGS=-g $(ADD_CFLAGS)\r
-\r
-DFLAGS=-release -O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)\r
-#DFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)\r
-\r
-TFLAGS=-O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)\r
-#TFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)\r
-\r
-DOCFLAGS=-version=DDoc -version=Posix\r
-\r
-CC=gcc\r
-LC=$(AR) -qsv\r
-DC=dmd\r
-\r
-INC_DEST=../../import\r
-LIB_DEST=../../lib\r
-DOC_DEST=../../doc\r
-\r
-.SUFFIXES: .s .S .c .cpp .d .html .o\r
-\r
-.s.o:\r
- $(CC) -c $(CFLAGS) $< -o$@\r
-\r
-.S.o:\r
- $(CC) -c $(CFLAGS) $< -o$@\r
-\r
-.c.o:\r
- $(CC) -c $(CFLAGS) $< -o$@\r
-\r
-.cpp.o:\r
- g++ -c $(CFLAGS) $< -o$@\r
-\r
-.d.o:\r
- $(DC) -c $(DFLAGS) -Hf$*.di $< -of$@\r
-# $(DC) -c $(DFLAGS) $< -of$@\r
-\r
-.d.html:\r
- $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<\r
-\r
-targets : lib doc\r
-all : lib doc\r
-core : lib\r
-lib : core.lib\r
-doc : core.doc\r
-\r
-######################################################\r
-\r
-OBJ_CORE= \\r
- bitmanip.o \\r
- exception.o \\r
- memory.o \\r
- runtime.o \\r
- thread.o\r
-\r
-OBJ_STDC= \\r
- stdc.o\r
-\r
-ALL_OBJS= \\r
- $(OBJ_CORE) \\r
- $(OBJ_STDC)\r
-\r
-######################################################\r
-\r
-DOC_CORE= \\r
- bitmanip.html \\r
- exception.html \\r
- memory.html \\r
- runtime.html \\r
- thread.html\r
-\r
-\r
-ALL_DOCS=\r
-\r
-######################################################\r
-\r
-core.lib : $(LIB_TARGET)\r
-\r
-$(LIB_TARGET) : $(ALL_OBJS)\r
- $(RM) $@\r
- $(LC) $@ $(ALL_OBJS)\r
-\r
-core.doc : $(ALL_DOCS)\r
- echo Documentation generated.\r
-\r
-######################################################\r
-\r
-### bitmanip\r
-\r
-bitmanip.o : bitmanip.d\r
- $(DC) -c $(DFLAGS) bitmanip.d -of$@\r
-\r
-######################################################\r
-\r
-clean :\r
- find . -name "*.di" | xargs $(RM)\r
- $(RM) $(ALL_OBJS)\r
- $(RM) $(ALL_DOCS)\r
- find . -name "$(LIB_MASK)" | xargs $(RM)\r
-\r
-install :\r
- $(MD) $(INC_DEST)\r
- find . -name "*.di" -exec cp -f {} $(INC_DEST)/{} \;\r
- $(MD) $(DOC_DEST)\r
- find . -name "*.html" -exec cp -f {} $(DOC_DEST)/{} \;\r
- $(MD) $(LIB_DEST)\r
- find . -name "$(LIB_MASK)" -exec cp -f {} $(LIB_DEST)/{} \;\r
+# Makefile to build the D runtime library core components for Posix
+# Designed to work with GNU make
+# Targets:
+# make
+# Same as make all
+# make lib
+# Build the common library
+# make doc
+# Generate documentation
+# make clean
+# Delete unneeded files created by build process
+
+LIB_TARGET=libdruntime-core.a
+LIB_MASK=libdruntime-core*.a
+
+CP=cp -f
+RM=rm -f
+MD=mkdir -p
+
+ADD_CFLAGS=
+ADD_DFLAGS=
+
+CFLAGS=-O $(ADD_CFLAGS)
+#CFLAGS=-g $(ADD_CFLAGS)
+
+DFLAGS=-release -O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)
+#DFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)
+
+TFLAGS=-O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)
+#TFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)
+
+DOCFLAGS=-version=DDoc -version=Posix
+
+CC=gcc
+LC=$(AR) -qsv
+DC=dmd
+
+INC_DEST=../../import
+LIB_DEST=../../lib
+DOC_DEST=../../doc
+
+.SUFFIXES: .s .S .c .cpp .d .html .o
+
+.s.o:
+ $(CC) -c $(CFLAGS) $< -o$@
+
+.S.o:
+ $(CC) -c $(CFLAGS) $< -o$@
+
+.c.o:
+ $(CC) -c $(CFLAGS) $< -o$@
+
+.cpp.o:
+ g++ -c $(CFLAGS) $< -o$@
+
+.d.o:
+ $(DC) -c $(DFLAGS) -Hf$*.di $< -of$@
+# $(DC) -c $(DFLAGS) $< -of$@
+
+.d.html:
+ $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
+
+targets : lib doc
+all : lib doc
+core : lib
+lib : core.lib
+doc : core.doc
+
+######################################################
+
+OBJ_CORE= \
+ bitmanip.o \
+ exception.o \
+ memory.o \
+ runtime.o \
+ thread.o
+
+OBJ_STDC= \
+ stdc.o
+
+ALL_OBJS= \
+ $(OBJ_CORE) \
+ $(OBJ_STDC)
+
+######################################################
+
+DOC_CORE= \
+ bitmanip.html \
+ exception.html \
+ memory.html \
+ runtime.html \
+ thread.html
+
+
+ALL_DOCS=
+
+######################################################
+
+core.lib : $(LIB_TARGET)
+
+$(LIB_TARGET) : $(ALL_OBJS)
+ $(RM) $@
+ $(LC) $@ $(ALL_OBJS)
+
+core.doc : $(ALL_DOCS)
+ echo Documentation generated.
+
+######################################################
+
+### bitmanip
+
+bitmanip.o : bitmanip.d
+ $(DC) -c $(DFLAGS) bitmanip.d -of$@
+
+### thread
+
+thread.o : thread.d
+ $(DC) -c $(DFLAGS) -d -Hf$*.di thread.d -of$@
+
+######################################################
+
+clean :
+ find . -name "*.di" | xargs $(RM)
+ $(RM) $(ALL_OBJS)
+ $(RM) $(ALL_DOCS)
+ find . -name "$(LIB_MASK)" | xargs $(RM)
+
+install :
+ $(MD) $(INC_DEST)
+ find . -name "*.di" -exec cp -f {} $(INC_DEST)/{} \;
+ $(MD) $(DOC_DEST)
+ find . -name "*.html" -exec cp -f {} $(DOC_DEST)/{} \;
+ $(MD) $(LIB_DEST)
+ find . -name "$(LIB_MASK)" -exec cp -f {} $(LIB_DEST)/{} \;