wificurse

wifi jamming tool
git clone git@git.2f30.org/wificurse.git
Log | Files | Refs | README | LICENSE

Makefile (573B)


      1 PREFIX ?= /usr/local
      2 CC = $(CROSS_COMPILE)gcc
      3 CFLAGS ?= -O2
      4 
      5 SRCS = $(wildcard src/*.c)
      6 HDRS = $(wildcard src/*.h)
      7 
      8 OBJS = $(SRCS:%.c=%.o)
      9 LIBS = -lpthread
     10 
     11 .PHONY: clean all install
     12 
     13 ifneq ($(DESTDIR),)
     14     INSTALLDIR = $(subst //,/,$(DESTDIR)/$(PREFIX))
     15 else
     16     INSTALLDIR = $(PREFIX)
     17 endif
     18 
     19 
     20 all: wificurse
     21 
     22 wificurse: $(OBJS)
     23 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
     24 
     25 %.o: %.c $(HDRS)
     26 	$(CC) $(CFLAGS) -c $< -o $@
     27 
     28 install: all
     29 	@mkdir -p $(INSTALLDIR)/bin
     30 	cp wificurse $(INSTALLDIR)/bin/wificurse
     31 
     32 clean:
     33 	@rm -f src/*~ src/\#*\# src/*.o *~ \#*\# wificurse