1
2
3ifeq ($(NEOTONIC_ROOT),)
4NEOTONIC_ROOT = ..
5endif
6
7include $(NEOTONIC_ROOT)/rules.mk
8
9MOD_ECS_SRC = mod_ecs.c
10MOD_ECS_SO = mod_ecs.so
11
12DLIBS += -lneo_cgi -lneo_cs -lneo_utl
13LIBS += $(DLIBS) $(DB2_LIB)
14
15TARGETS = $(MOD_ECS_SO)
16
17all: $(TARGETS)
18
19$(MOD_ECS_SO): $(MOD_ECS_SRC) $(DEP_LIBS)
20	$(APXS) -c -o $@ $(MOD_ECS_SRC)
21
22install: all
23	$(NEOTONIC_ROOT)/mkinstalldirs $(DESTDIR)$(libexecdir)
24	$(INSTALL) $(MOD_ECS_SO) $(DESTDIR)$(libexecdir)
25
26# Hmm, install it in the default apache place, or in with the
27# rest of our stuff?
28#	$(APXS) -i $(MOD_ECS_SO)
29
30clean:
31	$(RM) *.o
32
33distclean:
34	$(RM) Makefile.depends $(TARGETS) *.o
35