My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Makefile 937 B

il y a 8 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. VERSION = 0.5
  2. PREFIX = /usr/local
  3. MANPREFIX = $(PREFIX)/man
  4. #CPPFLAGS = -DDEBUG
  5. #CFLAGS = -g
  6. CFLAGS = -O3 -march=native
  7. LDLIBS = -lcurses
  8. DISTFILES = noice.c strlcat.c strlcpy.c util.h config.def.h\
  9. noice.1 Makefile README LICENSE
  10. OBJ = noice.o strlcat.o strlcpy.o
  11. BIN = noice
  12. all: $(BIN)
  13. $(BIN): $(OBJ)
  14. $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
  15. noice.o: util.h config.h
  16. strlcat.o: util.h
  17. strlcpy.o: util.h
  18. config.h:
  19. cp config.def.h $@
  20. install: all
  21. mkdir -p $(DESTDIR)$(PREFIX)/bin
  22. cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
  23. mkdir -p $(DESTDIR)$(MANPREFIX)/man1
  24. cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
  25. uninstall:
  26. rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  27. rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
  28. dist:
  29. mkdir -p noice-$(VERSION)
  30. cp $(DISTFILES) noice-$(VERSION)
  31. tar -cf noice-$(VERSION).tar noice-$(VERSION)
  32. gzip noice-$(VERSION).tar
  33. rm -rf noice-$(VERSION)
  34. clean:
  35. rm -f config.h $(BIN) $(OBJ) noice-$(VERSION).tar.gz