D言語でhello, world!(cygwin版)

戻る

::::::::::::::
Makefile
::::::::::::::
# $Id: dlang.html,v 1.1 2009/06/22 16:12:09 kishi Exp kishi $
# @author KISHI Yasuhiro

GDC = gdc
DFLAGS = -O 
SRC = hello.d
EXE = hello.exe

$(EXE): $(SRC)
	$(GDC) $(SRC) -o $(EXE) $(DFLAGS) && strip $(EXE)

clean:
	rm -f *.o *.exe *~ *.bak *.orig

indent:
	astyle -j -a -P $(SRC)


::::::::::::::
hello.d
::::::::::::::
import std.stream;

int
main ( char[][] args ) {
    printf ( "hello, world\n" );
    stdout.writeLine ( "hello, world" );

    return 0;
}
戻る

inserted by FC2 system