stun

simple point to point tunnel
git clone git://git.2f30.org/stun
Log | Files | Refs | README

Makefile (984B)


      1 include config.mk
      2 
      3 DISTFILES = \
      4 	Makefile \
      5 	README \
      6 	UNLICENSE \
      7 	WHATSNEW \
      8 	arg.h \
      9 	auth.c \
     10 	client.c \
     11 	config.mk \
     12 	crypto.c \
     13 	dev_bsd.c \
     14 	dev_linux.c \
     15 	log.c \
     16 	netpkt.c \
     17 	server.c \
     18 	tunnel.c \
     19 	util.c \
     20 	warp.8 \
     21 	warp.c \
     22 	warp.h
     23 
     24 OBJ = \
     25 	$(EXTRAOBJ) \
     26 	auth.o \
     27 	client.o \
     28 	crypto.o \
     29 	log.o \
     30 	netpkt.o \
     31 	server.o \
     32 	tunnel.o \
     33 	util.o \
     34 	warp.o
     35 
     36 BIN = warp-vpn
     37 
     38 all: $(BIN)
     39 
     40 $(BIN): $(OBJ)
     41 	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDLIBS)
     42 
     43 $(OBJ): warp.h
     44 
     45 install: all
     46 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     47 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     48 	mkdir -p $(DESTDIR)$(MANPREFIX)/man8
     49 	cp -f $(BIN).8 $(DESTDIR)$(MANPREFIX)/man8
     50 
     51 uninstall:
     52 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     53 	rm -f $(DESTDIR)$(MANPREFIX)/man8/$(BIN).8
     54 
     55 dist:
     56 	mkdir -p warp-vpn-$(VERSION)
     57 	cp $(DISTFILES) warp-vpn-$(VERSION)
     58 	tar -cf warp-vpn-$(VERSION).tar warp-vpn-$(VERSION)
     59 	gzip warp-vpn-$(VERSION).tar
     60 	rm -rf warp-vpn-$(VERSION)
     61 
     62 clean:
     63 	rm -f $(BIN) $(OBJ) warp-vpn-$(VERSION).tar.gz