Changeset 657
- Timestamp:
- 03/09/08 03:53:09 (9 months ago)
- Files:
-
- trunk/phobos/linux.mak (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phobos/linux.mak
r647 r657 1 1 # Makefile to build linux D runtime library libphobos2.a and its unit test 2 2 # 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 # 6 10 # unittest/release 7 # -unittest -release -O 11 # -O -release -unittest 12 # 8 13 # debug 9 14 # -g 15 # 10 16 # unittest/debug 11 # -unittest -g 17 # -g -unittest 18 # 19 # html 20 # Generate the ddocs for phobos 21 # 12 22 # clean 13 23 # Delete all files created by build process … … 21 31 ifeq (unittest/release,$(MAKECMDGOALS)) 22 32 CFLAGS:=$(CFLAGS) -O 23 DFLAGS:=$(DFLAGS) - release -unittest33 DFLAGS:=$(DFLAGS) -O -release -unittest 24 34 OBJDIR=obj/unittest/release 25 35 endif … … 45 55 OBJDIR=none 46 56 endif 57 ifeq (all,$(MAKECMDGOALS)) 58 OBJDIR=none 59 endif 47 60 48 61 ifndef OBJDIR 49 62 $(error Cannot make $(MAKECMDGOALS). Please make either \ 50 debug, release, unittest/debug, unittest/release, clear, or html)63 all, debug, release, unittest/debug, unittest/release, clean, or html) 51 64 endif 52 65 … … 76 89 77 90 debug release unittest/debug unittest/release : $(OBJDIR)/unittest 91 92 all : 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 78 98 79 99 $(OBJDIR)/unittest : $(OBJDIR)/unittest.o \ … … 207 227 $(LIB) : $(OBJS) $(MAKEFILE_LIST) 208 228 rm -f $(LIB) 209 @echo ar -r $@ "<...ton z of filez...>"210 @ar -r $@ $(OBJS) 2> /tmp/deleteme || cat /tmp/deleteme>&2211 @rm /tmp/deleteme229 @echo ar -r $@ "<...tons of files...>" 230 @ar -r $@ $(OBJS) 2>$(OBJDIR)/ar-files || cat $(OBJDIR)/ar-files >&2 231 @rm $(OBJDIR)/ar-files 212 232 213 233 ###########################################################
