Home | History | Annotate | Download | only in mod_ecs
      1 
      2 
      3 ifeq ($(NEOTONIC_ROOT),)
      4 NEOTONIC_ROOT = ..
      5 endif
      6 
      7 include $(NEOTONIC_ROOT)/rules.mk
      8 
      9 MOD_ECS_SRC = mod_ecs.c
     10 MOD_ECS_SO = mod_ecs.so
     11 
     12 DLIBS += -lneo_cgi -lneo_cs -lneo_utl 
     13 LIBS += $(DLIBS) $(DB2_LIB)
     14 
     15 TARGETS = $(MOD_ECS_SO)
     16 
     17 all: $(TARGETS)
     18 
     19 $(MOD_ECS_SO): $(MOD_ECS_SRC) $(DEP_LIBS)
     20 	$(APXS) -c -o $@ $(MOD_ECS_SRC)
     21 
     22 install: 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 
     30 clean:
     31 	$(RM) *.o
     32 
     33 distclean:
     34 	$(RM) Makefile.depends $(TARGETS) *.o
     35