[MWy] Druhe cviceni pondeli 31. 3. 14:00 SU2
Lukáš Turek
turek at ksvi.mff.cuni.cz
Sun Mar 30 16:56:08 CEST 2008
On 30.3.2008 16:35 Martin wrote:
> Dobry den,
> snazim se zkompilovat priklad na 2. cviceni MWy, ale c compiler u me zrejme
> nedovede nalezt knihovny z omniORBu - make vraci chybovy vypis:
Ja jsem si ten Makefile predelal, aby se dal nastavit adresar, kam je omniORB
rozbalen. Posilam ho v priloze, aby se nerozbily tabelatory. Tu cestu v
promenne PREFIX na zacatku si upravte podle sebe.
Lukas Turek
-------------- next part --------------
PREFIX= $(HOME)/BIG/MWy/CORBA/omniORB
CFLAGS= -I $(PREFIX)/include
all: server client
simple.h simpleSK.cpp: simple.idl
PYTHONPATH="$(PREFIX)/lib/python2.4/site-packages" $(PREFIX)/bin/omniidl -bcxx -Wbh=.h -Wbs=SK.cpp simple.idl
simpleSK.o: simpleSK.cpp simple.h
g++ $(CFLAGS) -c -o $@ simpleSK.cpp
server.o: server.cpp simple.h
g++ $(CFLAGS) -c -o $@ server.cpp
client.o: client.cpp simple.h
g++ $(CFLAGS) -c -o $@ client.cpp
server: simpleSK.o server.o
g++ $(CFLAGS) -o $@ -Wl,-rpath $(PREFIX)/lib -L $(PREFIX)/lib -lomniORB4 simpleSK.o server.o
client: simpleSK.o client.o
g++ $(CFLAGS) -o $@ -Wl,-rpath $(PREFIX)/lib -L $(PREFIX)/lib -lomniORB4 simpleSK.o client.o
clean:
rm -f *.o server client simple.h simpleSK.cpp
More information about the NSWI080
mailing list