nausea

curses audio visualizer
git clone git://git.2f30.org/nausea
Log | Files | Refs | README | LICENSE

Makefile (579B)


      1 PREFIX = /usr/local
      2 MANPREFIX = $(PREFIX)/man
      3 
      4 CPPFLAGS = -I/usr/local/include
      5 LDFLAGS = -L/usr/local/lib
      6 LDLIBS = -lm -lncursesw -lfftw3
      7 
      8 OBJ = nausea.o
      9 BIN = nausea
     10 
     11 all: $(BIN)
     12 
     13 $(BIN): $(OBJ)
     14 	$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
     15 
     16 nausea.o: config.h
     17 
     18 config.h:
     19 	cp config.def.h $@
     20 
     21 install: all
     22 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     23 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     24 	mkdir -p $(DESTDIR)$(MANPREFIX)/man1
     25 	cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
     26 
     27 uninstall:
     28 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     29 	rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
     30 
     31 clean:
     32 	rm -f $(BIN) $(OBJ)