docs(capi): build 'upload' example too by default (#2625)

This commit is contained in:
Daniel Stenberg
2021-08-18 23:16:07 +02:00
committed by GitHub
parent 3b26572876
commit a1995ee1cb

View File

@@ -3,20 +3,23 @@
# #
TARGET = client TARGET = client
TARGET2 = upload
OBJS = client.o OBJS = client.o
OBJS2 = upload.o
RPATH=$(PWD)/../../target/debug RPATH=$(PWD)/../../target/debug
CFLAGS = -I../include CFLAGS = -I../include
LDFLAGS = -L$(RPATH) -Wl,-rpath,$(RPATH) LDFLAGS = -L$(RPATH) -Wl,-rpath,$(RPATH)
LIBS = -lhyper LIBS = -lhyper
all: $(TARGET) $(TARGET2)
$(TARGET): $(OBJS) $(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS) $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
upload: upload.o $(TARGET2): $(OBJS2)
$(CC) -o upload upload.o $(LDFLAGS) $(LIBS) $(CC) -o $(TARGET2) $(OBJS) $(LDFLAGS) $(LIBS)
clean: clean:
rm -f $(OBJS) $(TARGET) rm -f $(OBJS) $(TARGET) $(OBJS2) $(TARGET2)
rm -f upload upload.o