fpc32-2.24 source.
{
}
{$IFDEF FPC}
{$MODE OBJFPC}
{$ENDIF}
{$APPTYPE CONSOLE}
program guid;
uses
sysutils;
var
gg: TGuid;
gs: string;
begin
gs := '{00000000-0000-0000-0000-000000000000}';
if CreateGUID(gg) = S_OK then
gs := GUIDToString(gg);
WriteLn(gs);
end.
gnu-make
# test project for passcal
# created by perry. 11/03/2011 Thu
#
PC := fpc
ifndef OUT
OUT :=AA.exe
endif
.SUFFIXES:
.SUFFIXES: .pp .o
.PHONY: all
all: ${OUT} clean_temp
src := $(wildcard ${CURDIR}*.pp)
obj := $(addsuffix .o, $(basename ${src}))
${OUT} : ${src}
${PC} ${PFLAGS} -o$@ $<
# remove all output files.
.PHONY: clean_all
clean_all: clean_temp clean_out
# remove all temp files.
.PHONY: clean_temp
clean_temp:
gecho ${.VARIABLES} ${DESTDIR}
if exist *.o del *.o
# remove target file.
.PHONY: clean_out
clean_out:
if exist ${OUT} del ${OUT}