feat(ffi): Initial C API for hyper

This commit is contained in:
Sean McArthur
2021-01-07 17:22:12 -08:00
parent 8861f9a786
commit 3ae1581a53
22 changed files with 2910 additions and 14 deletions

22
capi/examples/Makefile Normal file
View File

@@ -0,0 +1,22 @@
#
# Build the example client
#
TARGET = client
OBJS = client.o
RPATH=$(PWD)/../../target/debug
CFLAGS = -I../include
LDFLAGS = -L$(RPATH) -Wl,-rpath,$(RPATH)
LIBS = -lhyper
$(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
upload: upload.o
$(CC) -o upload upload.o $(LDFLAGS) $(LIBS)
clean:
rm -f $(OBJS) $(TARGET)
rm -f upload upload.o