1 # Makefile to build the composite D runtime library for Linux
\r
2 # Designed to work with GNU make
\r
7 # Build the runtime library
\r
9 # Generate documentation
\r
11 # Delete unneeded files created by build process
\r
13 LIB_TARGET=libdruntime-dmd.a
\r
14 LIB_MASK=libdruntime-dmd*.a
\r
17 DIR_RT=../src/compiler/dmd
\r
18 DIR_GC=../src/gc/basic
\r
36 ######################################################
\r
40 ######################################################
\r
44 ######################################################
\r
47 make -C $(DIR_CC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
\r
48 make -C $(DIR_RT) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
\r
49 make -C $(DIR_GC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
\r
50 find . -name "libphobos*.a" | xargs $(RM)
\r
51 $(LC) $(LIB_TARGET) `find $(DIR_CC) -name "*.o" | xargs echo`
\r
52 $(LC) $(LIB_TARGET) `find $(DIR_RT) -name "*.o" | xargs echo`
\r
53 $(LC) $(LIB_TARGET) `find $(DIR_GC) -name "*.o" | xargs echo`
\r
56 make -C $(DIR_CC) -fposix.mak doc DC=$(DC)
\r
57 make -C $(DIR_RT) -fposix.mak doc DC=$(DC)
\r
58 make -C $(DIR_GC) -fposix.mak doc DC=$(DC)
\r
60 ######################################################
\r
63 find . -name "*.di" | xargs $(RM)
\r
66 make -C $(DIR_CC) -fposix.mak clean
\r
67 make -C $(DIR_RT) -fposix.mak clean
\r
68 make -C $(DIR_GC) -fposix.mak clean
\r
72 make -C $(DIR_CC) -fposix.mak install
\r
73 make -C $(DIR_RT) -fposix.mak install
\r
74 make -C $(DIR_GC) -fposix.mak install
\r
75 $(CP) $(LIB_MASK) $(LIB_DEST)/.
\r