aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: b0be2a825fdcdd18957586dd14d6a913417054a5 (plain) (tree)
1
2
3
4
5


                              

                                              










                                                          

                                                                     

                                       
                                   
                                           
                                                             


                                                            

           
LIB = libglouglou
DAEMON = glougloud
PROBES = gg_sniff gg_trackproc
ANALYSERS = gg_map 
DIRS = $(LIB) $(DAEMON) $(PROBES) $(ANALYSERS)

all:
	-for d in $(DIRS); do (cd $$d; make); done

clean:
	-for d in $(DIRS); do (cd $$d; make clean); done

install:
	-for d in $(DIRS); do (cd $$d; make install); done

pkg:
	$(eval _pkgname := "glouglou_pkg_$(shell date +%Y%m%d_%H%M)")
	mkdir -p $(_pkgname)
	cp libglouglou/libglouglou.so \
		glougloud/glougloud \
		gg_sniff/gg_sniff \
		gg_trackproc/gg_trackproc \
		gg_map/gg_map gg_map/glouglou_localsniff.sh \
		$(_pkgname)
	tar -czf $(_pkgname).tgz $(_pkgname)
	@echo -e "\nCreated $(_pkgname) and $(_pkgname).tgz"

.PHONY: pkg