Steward
分享是一種喜悅、更是一種幸福
程式語言 - Free Pascal - Win32 API - Hello, world!
main.pp
{$APPTYPE GUI}
{$MODE DELPHI}
program app;
uses
Windows;
begin
MessageBox(0, 'Hello, world!', '', MB_OK);
end.
Makefile
TARGET = main
all:
myx86 "c:\fpc\3.2.2\bin\i386-win32\fpc.exe" ${TARGET}.pp
run:
myx86 ${TARGET}.exe
clean:
rm -rf ${TARGET}.exe ${TARGET}.o
編譯、執行
$ make $ make run
完成