XCode, libs and SNMP
XCode, libs and SNMP
- Subject: XCode, libs and SNMP
- From: Arnaud Schoofs <email@hidden>
- Date: Tue, 16 Mar 2010 19:19:52 +0100
Hi,
I'm pretty new to XCode so excuse me if my question seems stupid.
I've downloaded a C++ file example of a program using NET-SNMP API. I've also downloaded the Makefile to compile this app.
When running the Makefile in a terminal : no problem, everything works fine.
Secondly i tried to make a "basic c++ xcode project", I added source files and tried to compile. Of course it didn't work due to library dependencies.
So i made my own target "using external build", and so using the makefile provided. It works.
Now i want to know how i can configure XCode to compile my files WITHOUT using the Makefile. Can you help me ? (You can find the Makefile at the end of this mail)
I've another question : is it possible to have "autocompletion" for the NET-SNMP API ?
Thanks for your help !
Best regards.
(Sorry if you receive this mail twice, i didn't get the ACK mail the first time :/)
------------------------------------
CC=g++
OBJS1=snmpdemoapp.o
OBJS2=example-demon.o nstAgentSubagentObject.o
OBJS3=asyncapp.o
TARGETS=example-demon snmpdemoapp asyncapp
CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS=`net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs`
# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared
all: $(TARGETS)
snmpdemoapp: $(OBJS1)
$(CC) -o snmpdemoapp $(OBJS1) $(BUILDLIBS)
asyncapp: $(OBJS3)
$(CC) -o asyncapp $(OBJS3) $(BUILDLIBS)
example-demon: $(OBJS2)
$(CC) -o example-demon $(OBJS2) $(BUILDAGENTLIBS)
clean:
rm $(OBJS2) $(OBJS2) $(TARGETS)
nstAgentPluginObject.so: nstAgentPluginObject.c Makefile
$(CC) $(CFLAGS) $(DLFLAGS) -c -o nstAgentPluginObject.o nstAgentPluginObject.c
$(CC) $(CFLAGS) $(DLFLAGS) -o nstAgentPluginObject.so nstAgentPluginObject.o _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden