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 DUP_TARGET=libdruntime.a
15 LIB_MASK=libdruntime*.a
37 ######################################################
41 ######################################################
45 ######################################################
48 make -C $(DIR_CC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
49 make -C $(DIR_RT) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
50 make -C $(DIR_GC) -fposix.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
52 $(LC) $(LIB_TARGET) `find $(DIR_CC) -name "*.o" | xargs echo`
53 $(LC) $(LIB_TARGET) `find $(DIR_RT) -name "*.o" | xargs echo`
54 $(LC) $(LIB_TARGET) `find $(DIR_GC) -name "*.o" | xargs echo`
56 $(CP) $(LIB_TARGET) $(DUP_TARGET)
59 make -C $(DIR_CC) -fposix.mak doc DC=$(DC)
60 make -C $(DIR_RT) -fposix.mak doc DC=$(DC)
61 make -C $(DIR_GC) -fposix.mak doc DC=$(DC)
63 ######################################################
66 find . -name "*.di" | xargs $(RM)
69 make -C $(DIR_CC) -fposix.mak clean
70 make -C $(DIR_RT) -fposix.mak clean
71 make -C $(DIR_GC) -fposix.mak clean
75 make -C $(DIR_CC) -fposix.mak install
76 make -C $(DIR_RT) -fposix.mak install
77 make -C $(DIR_GC) -fposix.mak install
78 $(CP) $(LIB_MASK) $(LIB_DEST)/.