Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capi/examples: make it build 'upload' too by default #2625

Merged
merged 1 commit into from Aug 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions capi/examples/Makefile
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)