I have made a start
I have done some work on opening a socket and waiting for a connection. This can be read line by line and I have started a request struct that it will accept. Also started on some docs. Not much is yet working. I am going to start learning µnit for unit tests: https://nemequ.github.io/munit/
This commit is contained in:
parent
4e17e706fa
commit
f48a110429
15 changed files with 599 additions and 1 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# This was stolen from here: https://avikdas.com/2019/12/16/makefiles-for-c-cpp-projects.html
|
||||
|
||||
CFILES = $(wildcard src/*.c)
|
||||
OBJFILES = $(CFILES:.c=.o)
|
||||
OUT = proxy
|
||||
CFLAGS = -Wall
|
||||
LDLIBS = -lsqlite3
|
||||
CC = gcc
|
||||
|
||||
|
||||
.PHONY: default
|
||||
default: $(OUT)
|
||||
|
||||
|
||||
.PHONY: run
|
||||
run: $(OUT)
|
||||
./$(OUT)
|
||||
|
||||
$(OUT): $(OBJFILES)
|
||||
$(CC) -o $@ $^ $(LDLIBS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $^
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(OBJFILES) $(OUT)
|
Loading…
Add table
Add a link
Reference in a new issue