nnn/Makefile
2014-10-21 22:58:46 +03:00

33 lines
587 B
Makefile

PREFIX = /usr/local
#CPPFLAGS += -DDEBUG
#CFLAGS += -g
LDLIBS = -lncursesw
OBJ = noice.o strlcpy.o
BIN = noice
all: $(BIN)
$(BIN): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
noice.o: queue.h util.h config.h
strlcpy.o: util.h
install: all
@echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
@chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
uninstall:
@echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin
@rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
clean:
rm -f $(BIN) $(OBJ)
.SUFFIXES: .def.h
.def.h.h:
cp $< $@