torrentd

simple torrent daemon
git clone git@git.2f30.org/torrentd.git
Log | Files | Refs | LICENSE

Makefile (547B)


      1 VERSION = 0.0
      2 
      3 PREFIX = /usr/local
      4 
      5 CURLINC = /usr/local/include
      6 CURLLIB = /usr/local/lib
      7 
      8 INCS = -I$(CURLINC)
      9 LIBS = -L$(CURLLIB) -lcurl
     10 
     11 CFLAGS = -g -std=c99 -Wall -Wextra $(INCS)
     12 LDFLAGS = $(LIBS)
     13 
     14 OBJ = torrentd.o sha1.o
     15 BIN = torrentd
     16 
     17 all: $(BIN)
     18 
     19 $(BIN): $(OBJ)
     20 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
     21 
     22 $(OBJ): queue.h sha1.h
     23 
     24 install: all
     25 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     26 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     27 
     28 uninstall:
     29 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     30 
     31 clean:
     32 	rm -f $(BIN) $(OBJ)
     33 
     34 .PHONY:
     35 	all install uninstall clean