Skip to content

Commit

Permalink
docs(capi): build 'upload' example too by default (#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder authored Aug 18, 2021
1 parent 3b26572 commit a1995ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions capi/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
#

TARGET = client
TARGET2 = upload

OBJS = client.o
OBJS2 = upload.o

RPATH=$(PWD)/../../target/debug
CFLAGS = -I../include
LDFLAGS = -L$(RPATH) -Wl,-rpath,$(RPATH)
LIBS = -lhyper

all: $(TARGET) $(TARGET2)

$(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)

upload: upload.o
$(CC) -o upload upload.o $(LDFLAGS) $(LIBS)
$(TARGET2): $(OBJS2)
$(CC) -o $(TARGET2) $(OBJS) $(LDFLAGS) $(LIBS)

clean:
rm -f $(OBJS) $(TARGET)
rm -f upload upload.o
rm -f $(OBJS) $(TARGET) $(OBJS2) $(TARGET2)

0 comments on commit a1995ee

Please # to comment.