Makefile 330 B

12345678910111213
  1. CC=gcc
  2. CFLAGS=-O2 --machine-arch=native -pipe
  3. # https://github.com/json-c/json-c
  4. CFLAGS+=$(shell pkg-config --cflags json-c)
  5. LIBS+=$(shell pkg-config --libs json-c)
  6. # https://curl.haxx.se
  7. LIBS+=$(shell curl-config --libs)
  8. CFLAGS+=$(shell curl-config --cflags)
  9. all: selfpaste.c
  10. $(CC) $(CFLAGS) -o selfpaste selfpaste.c $(LIBS)