FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Makefile

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Mon Feb 28, 2005 4:21 am    Post subject: Makefile Reply with quote

Here is a GNU Makefile for building and cleaning "build" :

Code:

DMD=dmd
DFLAGS=-op

SOURCES= \
    build.d \
    util/pathex_bn.d \
    util/pathex.d \
    source_bn.d \
    util/str.d \
    build_bn.d \
    util/fdt_bn.d \
    util/str_bn.d \
    source.d \
    util/fdt.d

all: build

build: $(SOURCES)
        $(DMD) $(DFLAGS) -of$@ $(SOURCES)

clean:
        rm -f *.o build


Goes into "Makefile" in the build Source directory.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Mon Feb 28, 2005 4:39 am    Post subject: Reply with quote

Please note that these lines have tabs:

Code:

build: $(SOURCES)
\t$(DMD) $(DFLAGS) -of$@ $(SOURCES)

clean:
\trm -f *.o build


Standard Make stuff, rules begin with tab.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Sat Mar 12, 2005 10:11 am    Post subject: Reply with quote

This can now be found as "Makefile.unix"
in the main distribution. Use with:
Code:
make -f Makefile.unix
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group