|
From: Dong Li <don...@sb...> - 2009-03-20 19:49:44
|
Hi, I just installed the openbabel API in cygwin envrionment and attempt to complie a simple code with following makefile. I got some error apparently related to openbabel library and include path in my makefile. What did I miss? Thanks for your help Dong makefile ------------------------------------ PROJDIR = . OBDIR = /cygdrive/c/applications/3rdparty/openbabel-2.0.2 SRCDIR = $(PROJDIR)/src BINDIR = $(PROJDIR)/bin INCDIR = $(PROJDIR)/include OBINCDIR = $(OBDIR)/src OBLIBDIR = $(OBDIR)/src/.libs INCS = -I$(INCDIR) -I$(OBINCDIR) LIBS = -L$(OBLIBDIR) \ -libopenbabel.dll \ -lz \ -lwsock32 -lnetapi32 CXXFLAGS = -mno-cygwin -W -Wall -O3 -ffast-math -Wno-deprecated LFLAGS = -mno-cygwin -s RM = rm -f PROGRAMS = test.exe EXES = $(BINDIR)/test.exe .SUFFIXES: .cpp .SUFFIXES: .o .cpp.o: $(CXX) $(CXXFLAGS) $(INCS) -c $< -o $*.o all: $(PROGRAMS) clean: $(RM) $(SRCDIR)/*.o $(RM) $(EXES) test.exe: $(SRCDIR)/test.o $(CXX) $(LFLAGS) -o $(BINDIR)/$@ $? $(LIBS) |