View previous topic :: View next topic |
Author |
Message |
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Mon Feb 28, 2005 4:21 am Post subject: Makefile |
|
|
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 |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Mon Feb 28, 2005 4:39 am Post subject: |
|
|
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 |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Sat Mar 12, 2005 10:11 am Post subject: |
|
|
This can now be found as "Makefile.unix"
in the main distribution. Use with:
Code: | make -f Makefile.unix |
|
|
Back to top |
|
|
|