smol_http

A simple http server supporting GET requests. Written in less than 400 lines of C.
Log | Files | Refs | README | LICENSE

Makefile (320B)


      1 CFLAGS=-Wall -pedantic -Werror -Wimplicit-fallthrough
      2 
      3 all: config.h smol_http
      4 
      5 config.h:
      6 	cp config.def.h $@
      7 
      8 smol_http: smol_http.c
      9 	$(CC) $(CFLAGS) $^ -o $@
     10 	chown root:root $@
     11 	chmod u+s $@
     12 
     13 install: smol_http config.h
     14 	mkdir -p /usr/bin
     15 	cp -f smol_http /usr/bin
     16 	chmod u+s /usr/bin/smol_http
     17 
     18 clean:
     19 	rm smol_http