exe file size

TomD t_demmer at nospam.web.de
Fri Nov 14 01:56:19 PST 2008


John Reimer Wrote:
[...]
My quickfix:
----- Snip ----
#!/bin/bash
# makemaker: create a Makefile in every subdir that contains
# .d files.
# Use like this:
# makemaker > all.mak
# and set up DC, DCSYSFLAGS, DCFLAGS, OBJEXT in the top
# Makefile
for d in `find $1 -type d`; do
    cd $d
    ls *.d >/dev/null 2>/dev/null
    if [ $? == 0 ] ; then
        rm -f Makefile
        echo "SRC=" `ls *.d` > Makefile
        echo 'OBJ=   $(SRC:.d=$(OBJEXT))' >> Makefile
        echo '%.obj: %.d' >> Makefile
        echo -e '\t $(DC) $(DCSYSFLAGS) $(DCFLAGS) -c $<' >> Makefile
        echo 'all: $(OBJ)' >> Makefile
        echo 'clean:'  >> Makefile
        echo -e '\t rm $(OBJ)' >> Makefile
        
        hasd=1
    else
        hasd=0
    fi
    cd - > /dev/null
    if [ $hasd == 1  ] ; then
        echo make -C $d all
    fi
---- snap ---





More information about the Digitalmars-d mailing list