hex

Hex stream reader / writer
git clone https://git.sinitax.com/sinitax/hex
Log | Files | Refs | LICENSE | sfeed.txt

Makefile (324B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3
      4CFLAGS = -O2
      5
      6all: hex hexv unhex
      7
      8clean:
      9	rm -f hex hexv unhex
     10
     11hex: hex.c
     12
     13hexv: hexv.c
     14
     15unhex: unhex.c
     16
     17install: hexv hex unhex
     18	install -m755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     19
     20uninstall:
     21	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{hexv,hex,unhex}
     22
     23.PHONY: all clean install uninstall