add request url parsing / handling

This commit is contained in:
2026-04-17 20:32:46 -05:00
parent 3dc05cccb0
commit 4a306746f9
4 changed files with 61 additions and 7 deletions

View File

@@ -1,14 +1,14 @@
CC = gcc
INCLUDE := include
CFLAGS = -Wall -I$(INCLUDE)
CFLAGS = -Wall -I$(INCLUDE) -g
BUILD_DIR := build
all: server
server: $(BUILD_DIR)/server.o $(BUILD_DIR)/mongoose.o
$(CC) $(CFLAGS) -o $(BUILD_DIR)/server $(BUILD_DIR)/server.o $(BUILD_DIR)/mongoose.o
server: $(BUILD_DIR)/server.o $(BUILD_DIR)/mongoose.o $(BUILD_DIR)/array.o
$(CC) $(CFLAGS) -o $(BUILD_DIR)/server $(BUILD_DIR)/server.o $(BUILD_DIR)/mongoose.o $(BUILD_DIR)/array.o
$(BUILD_DIR)/%.o: %.c | $(BUILD_DIR)
$(CC) $(CFLAGS) -c $< -o $@