C based API
This commit is contained in:
19
apiv2/Makefile
Normal file
19
apiv2/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CC = gcc
|
||||
CFLAGS = -I. -I./include -I/opt/homebrew/include -std=c99 -Wall $(shell pkg-config --cflags jansson)
|
||||
SOURCES = src/main.c src/database.c mongoose.c sqlite3.c
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
TARGET = api_server
|
||||
LIBS = -lpthread -ldl $(shell pkg-config --libs jansson)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(CFLAGS) $(OBJECTS) -o $@ $(LIBS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(TARGET)
|
||||
Reference in New Issue
Block a user