utils

small programs, scripts and utils
git clone https://git.e1e0.net/utils.git
Log | Files | Refs

Makefile (475B)


      1 CC = clang
      2 CFLAGS != curl-config --cflags
      3 CFLAGS += -Wall -Wextra -Werror -std=c11 -pedantic
      4 LIBS != curl-config --libs
      5 LIBS += -ljson-c
      6 PREFIX ?= /usr/local
      7 
      8 .PHONY: all clean
      9 .SUFFIXES: .in.1 .1
     10 
     11 all: geoloc
     12 
     13 clean:
     14 	rm -f geoloc geoloc.o geoloc.core
     15 
     16 install: all
     17 	install -d -m 0755 $(PREFIX)/bin
     18 	install -d -m 0755 $(PREFIX)/man/man1
     19 	install -m 0755 geoloc $(PREFIX)/bin
     20 	install -m 0644 geoloc.1 $(PREFIX)/man/man1
     21 
     22 geoloc: geoloc.o
     23 	$(CC) -o geoloc geoloc.o $(LIBS)