Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8517 → Rev 8518

/contrib/sdk/samples/cpp_hello/console_obj.h
File deleted
Property changes:
Deleted: svn:executable
-*
\ No newline at end of property
/contrib/sdk/samples/cpp_hello/Makefile
3,7 → 3,7
 
SDK_DIR = $(abspath ../..)
 
LDFLAGS = -call_shared -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds --image-base 0
LDFLAGS = -static -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0
 
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Wno-pointer-arith
 
18,7 → 18,7
default: hello
 
hello: $(OBJECTS) Makefile
$(LD) $(LDFLAGS) $(LIBPATH) --subsystem console -o hello.kex $(OBJECTS) -lstdc++ -lsupc++ -lgcc -lc
$(LD) $(LDFLAGS) $(LIBPATH) --subsystem console -o hello.kex $(OBJECTS) -lstdc++ -lsupc++ -lgcc -lc.dll
strip -s hello.kex -o hello.kex
objcopy hello.kex -O binary
rm *.o
/contrib/sdk/samples/cpp_hello/hello.cpp
2,7 → 2,7
#include <iostream>
 
// for 'console.obj' functions
#include "console_obj.h"
#include <sys/kos_LoadConsole.h>
 
using namespace std;