aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: c796c467ccf4ba885c72818809884415ed0cb5af (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                              

                                              

    
                                                     

      
                                                           

        
                                                             
 


                                                                              
    

                                                                     

                                       
                                   
                                           
                                                             


                                                            

           
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

rebuild:
	$(MAKE) clean && $(MAKE) -j 5 && sudo $(MAKE) install && sudo ldconfig

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