implement basic network server
Some checks failed
Test and Deploy / test (push) Failing after 13s
Test and Deploy / docs (push) Has been skipped

This commit is contained in:
2024-07-07 19:50:28 -07:00
parent 074798ed62
commit 1424925cbf
10 changed files with 238 additions and 58 deletions

View File

@ -1,6 +1,7 @@
.PHONY : clean
.PHONY : clean tests all
CFLAGS = -std=c99 -Iinclude -pedantic -Wall -Wextra
CFLAGS = -std=c99 -Iinclude -pedantic
WARNINGS= -Wall -Wextra
LDFLAGS = -fPIC -shared
TARGET = libflint.so
@ -11,9 +12,10 @@ PREFIX = $(DESTDIR)/usr/local
LIBDIR = $(PREFIX)/lib
all: $(TARGET)
./clanggen.sh
$(TARGET): $(OBJ)
cc $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJ)
cc $(CFLAGS) $(WARNINGS) $(LDFLAGS) -o $(TARGET) $(OBJ)
./obj/%.o: ./src/%.c
cc $(CFLAGS) -c $< -o $@
@ -26,7 +28,12 @@ uninstall:
clean:
rm -f $(TARGET)
rm -f test
rm -f testrunner
rm -f tcptest
rm -f compile_commands.json
tests:
cc $(CFLAGS) -o testrunner tests/tests.c src/*.c
cc $(CFLAGS) -o tcptest tests/tcptest.c src/*.c
./run_tests.sh
test:
cc $(CFLAGS) -o test tests/tests.c src/*.c