My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
587 B

  1. PREFIX = /usr/local
  2. #CPPFLAGS += -DDEBUG
  3. #CFLAGS += -g
  4. LDLIBS = -lncursesw
  5. OBJ = noice.o strlcpy.o
  6. BIN = noice
  7. all: $(BIN)
  8. $(BIN): $(OBJ)
  9. $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
  10. noice.o: queue.h util.h config.h
  11. strlcpy.o: util.h
  12. install: all
  13. @echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
  14. @mkdir -p $(DESTDIR)$(PREFIX)/bin
  15. @cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
  16. @chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
  17. uninstall:
  18. @echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin
  19. @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  20. clean:
  21. rm -f $(BIN) $(OBJ)
  22. .SUFFIXES: .def.h
  23. .def.h.h:
  24. cp $< $@