Soon Ju Kang wrote:
Thank you for your quick concern
I deeply appreciate if you point out some problems in
the following Makefile with error message.
###################################### Makefile I used
#################################################
CC = gcc ORBIT_IDL = /usr/local/bin/orbit-idl-mt ORBIT_CFLAGS = -I/usr/lib/glib/include -I/usr/local/include/ORBit-mt ORBIT_LIBS = -L/usr/lib -L/usr/local/lib -lORBit-mt -lIIOP-mt -lORBitutil-mt -lglib -lm CFLAGS = $(ORBIT_CFLAGS) LFLAGS = $(ORBIT_LIBS) all : idltargets client server
client : client.o calculator-common.o
calculator-stubs.o
$(CC) -o $(CFLAGS) client client.o calculator-stubs.o calculator-common.o 'orbit-config-mt --multithread --libs client' server : server.o calculator-skels.o
calculator-common.o
$(CC) -o $(CFLAGS) server server.o calculator-stubs.o calculator-common.o 'orbit-config-mt --multithread --libs server' clean : rm *.[oa] client server real-clean : clean
rm calculator-stubs.[oc] calculator-skels.[oc] calculator.h calculator-common.[oc] #
# IDL compiler rules # # all in one shot
idltargets : calculator.idl
$(ORBIT_IDL) calculator.idl # individual rules
calculator-stubs.c :
calculator.idl
$(ORBIT_IDL) echo.idl calculator-common.c :
calculator.idl
$(ORBIT_IDL) calculator.idl calculator-skels.c :
calculator.idl
$(ORBIT_IDL) calculator.idl client.c : calculator.h
server.c : calculator.h
calculator.h : calculator.idl
$(ORBIT_IDL) calculator.idl #################################### Error Message
##################################################
/usr/local/bin/orbit-idl-mt
calculator.idl
calculator.idl:6: Warning: `get_new_calculator' underscores within identifiers are discouraged for use with C-language IDL mappings gcc -I/usr/lib/glib/include -I/usr/local/include/ORBit-mt -c -o client.o client.c client.c: In function `main': client.c:66: warning: passing arg 1 of `g_thread_create' from incompatible pointer type gcc -I/usr/lib/glib/include -I/usr/local/include/ORBit-mt -c -o calculator-common.o calculator-common.c gcc -I/usr/lib/glib/include -I/usr/local/include/ORBit-mt -c -o calculator-stubs.o calculator-stubs.c gcc -o -I/usr/lib/glib/include -I/usr/local/include/ORBit-mt client client.o calculator-stubs.o calculator-common.o 'orbit-config-mt --multithread --libs client' gcc: client: No such file or directory gcc: orbit-config-mt --multithread --libs client: No such file or directory make: *** [client] Error 1
|