1 2 3 ifeq ($(NEOTONIC_ROOT),) 4 NEOTONIC_ROOT = .. 5 endif 6 7 include $(NEOTONIC_ROOT)/rules.mk 8 9 NEO_SO = libneo.so 10 NEO_STATIC_LIBS = 11 12 LIBS += $(DLIBS) $(DB2_LIB) 13 14 15 TARGETS = $(NEO_SO) dsotest 16 17 all: $(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 24 install: all 25 $(NEOTONIC_ROOT)/mkinstalldirs $(DESTDIR)$(PYTHON_SITE) 26 $(INSTALL) $(TARGETS) $(DESTDIR)$(PYTHON_SITE) 27 28 dsotest: dsotest.c $(NEO_SO) 29 gcc -o dsotest dsotest.c -lneo -L. -I.. 30 31 clean: 32 $(RM) *.o 33 34 distclean: 35 $(RM) Makefile.depends $(TARGETS) *.o 36