1 | # $Id: Makefile 42209 2009-01-29 12:22:10Z jens $
|
---|
2 |
|
---|
3 | PATH_XPCOM = ../..
|
---|
4 | PATH_BIN = /opt/VirtualBox
|
---|
5 |
|
---|
6 | INCS_XPCOM = -I$(PATH_XPCOM)/include \
|
---|
7 | -I$(PATH_XPCOM)/include/nsprpub \
|
---|
8 | -I$(PATH_XPCOM)/include/string \
|
---|
9 | -I$(PATH_XPCOM)/include/xpcom \
|
---|
10 | -I$(PATH_XPCOM)/include/ipcd \
|
---|
11 | -I$(PATH_VBOX_SVN)/include
|
---|
12 |
|
---|
13 | CC = gcc
|
---|
14 | CFLAGS = -g -ansi -pedantic -Wall
|
---|
15 |
|
---|
16 | .PHONY: all
|
---|
17 | all: tstLinuxC run
|
---|
18 |
|
---|
19 | .PHONY: clean
|
---|
20 | clean:
|
---|
21 | rm -f tstLinuxC.o tstLinuxC run
|
---|
22 |
|
---|
23 | tstLinuxC: tstLinuxC.o
|
---|
24 | $(CC) -o $@ $^ -Xlinker -rpath -Xlinker $(PATH_BIN) $(PATH_BIN)/VBoxXPCOMC.so
|
---|
25 |
|
---|
26 | tstLinuxC.o: tstLinuxC.c tstLinuxC.h
|
---|
27 | $(CC) $(CFLAGS) -DRT_OS_LINUX -DMOZ_UNICODE $(INCS_XPCOM) -o $@ -c $<
|
---|
28 |
|
---|
29 | run:
|
---|
30 | echo "env VBOX_XPCOM_HOME=$(PATH_BIN) LD_LIBRARY_PATH=$(PATH_BIN) ./tstLinuxC" > $@
|
---|
31 | chmod a+x $@
|
---|