Changeset 46c28a1 in rtems-graphics-toolkit


Ignore:
Timestamp:
Jul 8, 2012, 1:00:23 PM (7 years ago)
Author:
Alexandru-Sever Horin <alex.sever.h@…>
Branches:
master
Children:
40097d7
Parents:
0d32a9c
git-author:
Alexandru-Sever Horin <alex.sever.h@…> (07/08/12 13:00:23)
git-committer:
Alexandru-Sever Horin <alex.sever.h@…> (08/06/12 11:04:29)
Message:

Hello World building and running for rtems

Location:
fltk-1.3.0/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fltk-1.3.0/test/Makefile

    r0d32a9c r46c28a1  
    2727
    2828include ../makeinclude
     29
     30include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
     31include $(RTEMS_CUSTOM)
     32include $(PROJECT_ROOT)/make/leaf.cfg
    2933
    3034CPPFILES =\
     
    182186
    183187all:    $(ALL) $(GLDEMOS)
     188        $(make-cxx-exe)
    184189
    185190gldemos:        $(GLALL)
     
    275280$(ALL): $(LIBNAME)
    276281
     282
     283
    277284# General demos...
    278285unittests$(EXEEXT): unittests.o
     
    321328demo$(EXEEXT): demo.o
    322329        echo Linking $@...
    323         $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ demo.o $(LINKFLTKFORMS) $(LDLIBS)
     330        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ demo.o $(LINKFLTKFORMS) $(LDLIBS) ../../microwin/src/obj/rtems_init.o ../../microwin/src/obj/FilesystemImage.o
    324331
    325332device$(EXEEXT): device.o $(IMGLIBNAME)
     
    346353        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ forms.o $(LINKFLTKFORMS) $(LDLIBS)
    347354
    348 hello$(EXEEXT): hello.o
     355hello$(EXEEXT): hello.o 
     356        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ hello.o $(LINKFLTKFORMS) $(LDLIBS) ../../microwin/src/obj/rtems_init.o ../../microwin/src/obj/FilesystemImage.o
    349357
    350358help$(EXEEXT): help.o $(IMGLIBNAME)
  • fltk-1.3.0/test/demo.cxx

    r0d32a9c r46c28a1  
    396396}
    397397
    398 int main(int argc, char **argv) {
     398extern "C" int rtems_main(int argc, char **argv) {
    399399  putenv((char *)"FLTK_DOCDIR=../documentation/html");
    400400  char buf[FL_PATH_MAX];
  • fltk-1.3.0/test/hello.cxx

    r0d32a9c r46c28a1  
    3030#include <FL/Fl_Box.H>
    3131
    32 int main(int argc, char **argv) {
     32extern "C" int rtems_main(int argc, char **argv) {
    3333  Fl_Window *window = new Fl_Window(340,180);
    3434  Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
     
    3636  box->labelfont(FL_BOLD+FL_ITALIC);
    3737  box->labelsize(36);
    38   box->labeltype(FL_SHADOW_LABEL);
     38  box->labeltype(FL_NORMAL_LABEL);
    3939  window->end();
    4040  window->show(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.