Makefile 463 B

1234567891011121314151617181920212223
  1. CC = cc
  2. LIBS = -ljack -lfftw3f -lm -lpthread
  3. CFLAGS = -std=c99 -pedantic -Wall -Werror
  4. LDFLAGS = ${LIBS}
  5. PREFIX = /usr
  6. w2midi: w2midi.o
  7. ${CC} w2midi.o -o w2midi ${LDFLAGS}
  8. w2midi.o: w2midi.c
  9. ${CC} -c ${CFLAGS} w2midi.c -o w2midi.o
  10. clean:
  11. rm w2midi w2midi.o
  12. uninstall: ${PREFIX}/bin/w2midi
  13. rm ${PREFIX}/bin/w2midi
  14. rm ${PREFIX}/share/man/man1/w2midi.1
  15. install: w2midi
  16. install w2midi -m 755 ${PREFIX}/bin
  17. install w2midi.1 -m 744 ${PREFIX}/share/man/man1