1
2
3ifeq ($(NEOTONIC_ROOT),)
4NEOTONIC_ROOT = ..
5endif
6
7include $(NEOTONIC_ROOT)/rules.mk
8
9NEO_SO = libneo.so
10NEO_STATIC_LIBS =  
11
12LIBS += $(DLIBS) $(DB2_LIB)
13
14
15TARGETS = $(NEO_SO) dsotest
16
17all: $(TARGETS)
18
19$(NEO_SO): $(NEO_STATIC_LIBS) $(DEP_LIBS) Makefile 
20	 /usr/bin/ld  -rpath ../libs -shared -o libneo.so -whole-archive ../libs/libneo_cgi.a ../libs/libneo_cs.a ../libs/libneo_utl.a -no-whole-archive $(LDFLAGS) $(LIBS)
21
22#	$(LDSHARED) -o $@ $(LDFLAGS) -Wl,-whole-archive $(DLIBS)
23
24install: all
25	$(NEOTONIC_ROOT)/mkinstalldirs $(DESTDIR)$(PYTHON_SITE)
26	$(INSTALL) $(TARGETS) $(DESTDIR)$(PYTHON_SITE)
27
28dsotest: dsotest.c $(NEO_SO)
29	gcc -o dsotest dsotest.c -lneo -L. -I..
30
31clean:
32	$(RM) *.o 
33
34distclean:
35	$(RM) Makefile.depends $(TARGETS) *.o
36