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