ynetd

Small server for binding programs to tcp ports
git clone https://git.sinitax.com/yx7/ynetd
Log | Files | Refs | sfeed.txt

Makefile (477B)


      1
      2all: CFLAGS ?= -O2 -Wl,-s \
      3               -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all
      4all: CFLAGS += -std=c99 -pedantic -Wall -Wextra -DNDEBUG
      5all: ynetd
      6
      7debug: CFLAGS ?= -O0 -g \
      8                 -fsanitize=undefined \
      9                 -Wl,-z,relro,-z,now -fpic -pie -fstack-protector-all
     10debug: CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
     11debug: ynetd
     12
     13ynetd: ynetd.c
     14	$(CC) \
     15		$(CFLAGS) \
     16		ynetd.c \
     17		-o ynetd
     18
     19clean:
     20	rm -f ynetd
     21