neocities.h

a C library for interacting with Neocities' API
git clone https://github.com/tanguyandreani/neocities.h
Log | Files | Refs | README | LICENSE

Makefile (529B)


      1 CC=gcc # clang
      2 FLAGS=-lcurl -ljson-c -I/usr/local/include/json-c
      3 DEBUG=-g -DNEOCITIES_DEBUG
      4 
      5 all: info list upload
      6 
      7 info: info.c neocities.h dtparser.c dtparser.h print_error_msg.h apikey.h
      8 	$(CC) -o $(<:.c=) dtparser.c $< $(FLAGS) $(DEBUG)
      9 
     10 list: list.c neocities.h dtparser.c dtparser.h print_error_msg.h apikey.h
     11 	$(CC) -o $(<:.c=) dtparser.c $< $(FLAGS) $(DEBUG)
     12 
     13 upload: upload.c neocities.h dtparser.c dtparser.h print_error_msg.h apikey.h
     14 	$(CC) -o $(<:.c=) dtparser.c $< $(FLAGS) $(DEBUG)
     15 
     16 clean:
     17 	rm -f info list upload