makefile.tstLinuxC revision 09ac8d4619f93468eb42354e1a1d43822a857fc0
0N/A# $Revision$
1472N/A## @file makefile.tstLinuxC
0N/A# Makefile for sample program illustrating use of C binding for XPCOM.
0N/A#
0N/A
0N/A#
0N/A# Copyright (C) 2009 Sun Microsystems, Inc.
0N/A#
0N/A# This file is part of VirtualBox Open Source Edition (OSE), as
0N/A# available from http://www.virtualbox.org. This file is free software;
0N/A# you can redistribute it and/or modify it under the terms of the GNU
0N/A# General Public License (GPL) as published by the Free Software
0N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
0N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A#
0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
0N/A# Clara, CA 95054 USA or visit http://www.sun.com if you need
1472N/A# additional information or have any questions.
1472N/A#
1472N/A
0N/APATH_XPCOM = ../..
0N/APATH_BIN = /opt/VirtualBox
0N/A
0N/AINCS_XPCOM = -I$(PATH_XPCOM)/include \
0N/A -I$(PATH_XPCOM)/include/nsprpub \
0N/A -I$(PATH_XPCOM)/include/string \
0N/A -I$(PATH_XPCOM)/include/xpcom \
0N/A -I$(PATH_XPCOM)/include/ipcd \
0N/A -I$(PATH_VBOX_SVN)/include
0N/A
0N/ACC = gcc
0N/ACFLAGS = -g -ansi -pedantic -Wall
0N/A
0N/A.PHONY: all
0N/Aall: tstLinuxC run
0N/A
0N/A.PHONY: clean
0N/Aclean:
0N/A rm -f tstLinuxC.o tstLinuxC run
0N/A
0N/AtstLinuxC: tstLinuxC.o
0N/A $(CC) -o $@ $^ -Xlinker -rpath -Xlinker $(PATH_BIN) $(PATH_BIN)/VBoxXPCOMC.so
0N/A
0N/AtstLinuxC.o: tstLinuxC.c
0N/A $(CC) $(CFLAGS) -DRT_OS_LINUX -DMOZ_UNICODE $(INCS_XPCOM) -o $@ -c $<
0N/A
0N/Arun:
0N/A echo "env VBOX_XPCOM_HOME=$(PATH_BIN) ./tstLinuxC" > $@
0N/A chmod a+x $@
0N/A