bnetkit

simple networking utilities
git clone git://bvnf.space/bnetkit.git
Log | Files | Refs

Makefile (319B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
.POSIX:

XCFLAGS = $(CFLAGS) -Wall -Wextra -Wpedantic -g -Og -D_XOPEN_SOURCE=700
TLSFLAGS = $$(pkg-config --libs --cflags libtls || echo -ltls)

all: nc tlsnc

nc: nc.c
	$(CC) $(XCFLAGS) $(LDFLAGS) nc.c -o $@

tlsnc: tlsnc.c
	$(CC) $(XCFLAGS) $(LDFLAGS) $(TLSFLAGS) tlsnc.c -o $@

clean:
	rm -f nc tlsnc

.PHONY: clean