VirtualBox

Ignore:
Timestamp:
Nov 18, 2013 4:52:10 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90719
Message:

Main/cbinding: lots of love and care for this long forgotten part of the code, make it easier to use and more functional (error handling, initialization), and clean up and extend the sample code. It now includes the event sample, no need to keep so much redundant code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/makefile.tstXPCOMCGlue

    r48225 r49539  
    11# $Revision$
    2 ## @file makefile.tstLinuxC
     2## @file makefile.tstXPCOMCGlue
    33# Makefile for sample program illustrating use of C binding for XPCOM.
    44#
     
    2424
    2525.PHONY: all
    26 all: tstXPCOMCGlue tstXPCOMCEvent
     26all: tstXPCOMCGlue
    2727
    2828.PHONY: clean
    2929clean:
    30         rm -f tstXPCOMCGlue.o tstXPCOMCGlue VBoxXPCOMCGlue.o tstXPCOMCEvent.o tstXPCOMCEvent
     30        rm -f tstXPCOMCGlue.o tstXPCOMCGlue VBoxXPCOMCGlue.o
    3131
    3232tstXPCOMCGlue: tstXPCOMCGlue.o VBoxXPCOMCGlue.o
    33         $(CC) -o $@ $^ -ldl
     33        $(CC) -o $@ $^ -ldl -lpthread
    3434
    3535tstXPCOMCGlue.o: tstXPCOMCGlue.c
    3636        $(CC) $(CFLAGS) $(INCS_XPCOM) $(GLUE_INC) -o $@ -c $<
    3737
    38 tstXPCOMCEvent: tstXPCOMCEvent.o VBoxXPCOMCGlue.o
    39         $(CC) -o $@ $^ -ldl -lpthread
    40 
    41 tstXPCOMCEvent.o: tstXPCOMCEvent.c
    42         $(CC) $(CFLAGS) $(INCS_XPCOM) $(GLUE_INC) -o $@ -c $<
    43 
    4438VBoxXPCOMCGlue.o: $(GLUE_DIR)/VBoxXPCOMCGlue.c
    4539        $(CC) $(CFLAGS) $(INCS_XPCOM) $(GLUE_INC) -o $@ -c $<
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette