Changeset 657

Show
Ignore:
Timestamp:
03/09/08 03:53:09 (9 months ago)
Author:
braddr
Message:

add all target, cleanup documentation, remove slang, move temp file into the OBJDIR

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phobos/linux.mak

    r647 r657  
    11# Makefile to build linux D runtime library libphobos2.a and its unit test 
    22# Targets: 
    3 #   <default> | release 
    4 #       -release -O 
    5 # The release build also puts a link to libphobos2.a in the current directory. 
     3#   all 
     4#       Generate each build targets below except clean 
     5
     6#   release (default taret) 
     7#       -O -release 
     8#               Symlink libphobos2.a in the top level directory 
     9
    610#   unittest/release 
    7 #       -unittest -release -O 
     11#       -O -release -unittest 
     12
    813#   debug 
    914#       -g 
     15# 
    1016#   unittest/debug 
    11 #       -unittest -g 
     17#       -g -unittest 
     18
     19#   html 
     20#       Generate the ddocs for phobos 
     21
    1222#   clean 
    1323#       Delete all files created by build process 
     
    2131ifeq (unittest/release,$(MAKECMDGOALS)) 
    2232    CFLAGS:=$(CFLAGS) -O 
    23     DFLAGS:=$(DFLAGS) -release -unittest 
     33    DFLAGS:=$(DFLAGS) -O -release -unittest 
    2434    OBJDIR=obj/unittest/release 
    2535endif 
     
    4555    OBJDIR=none 
    4656endif 
     57ifeq (all,$(MAKECMDGOALS)) 
     58    OBJDIR=none 
     59endif 
    4760 
    4861ifndef OBJDIR 
    4962    $(error Cannot make $(MAKECMDGOALS). Please make either \ 
    50 debug, release, unittest/debug, unittest/release, clear, or html) 
     63all, debug, release, unittest/debug, unittest/release, clean, or html) 
    5164endif 
    5265 
     
    7689 
    7790debug release unittest/debug unittest/release : $(OBJDIR)/unittest 
     91 
     92all : 
     93    $(MAKE) -f linux.mak release 
     94    $(MAKE) -f linux.mak unittest/release 
     95    $(MAKE) -f linux.mak debug 
     96    $(MAKE) -f linux.mak unittest/debug 
     97    $(MAKE) -f linux.mak html 
    7898 
    7999$(OBJDIR)/unittest : $(OBJDIR)/unittest.o \ 
     
    207227$(LIB) : $(OBJS) $(MAKEFILE_LIST) 
    208228    rm -f $(LIB) 
    209     @echo ar -r $@ "<...tonz of filez...>" 
    210     @ar -r $@ $(OBJS) 2>/tmp/deleteme || cat /tmp/deleteme >&2 
    211     @rm /tmp/deleteme 
     229    @echo ar -r $@ "<...tons of files...>" 
     230    @ar -r $@ $(OBJS) 2>$(OBJDIR)/ar-files || cat $(OBJDIR)/ar-files >&2 
     231    @rm $(OBJDIR)/ar-files 
    212232 
    213233###########################################################