hyx

Minimalist but powerful terminal hex editor
git clone https://git.sinitax.com/yx7/hyx
Log | Files | Refs | sfeed.txt

Makefile (497B)


      1
      2all: CFLAGS ?= -O2 \
      3               -pedantic -Wall -Wextra -DNDEBUG \
      4               -D_FORTIFY_SOURCE=2 -fstack-protector-all
      5all: CFLAGS += -std=c99
      6all: hyx
      7
      8debug: CFLAGS ?= -O0 -g \
      9                 -fsanitize=undefined \
     10                 -std=c99 -pedantic -Wall -Wextra -Werror \
     11                 -fstack-protector-all
     12debug: CFLAGS += -std=c99
     13debug: hyx
     14
     15hyx: *.h *.c
     16	$(CC) \
     17		$(CFLAGS) \
     18		$(LDFLAGS) \
     19		hyx.c common.c blob.c history.c view.c input.c \
     20		-o hyx
     21
     22clean:
     23	rm -f hyx
     24