Skip to content

Commit

Permalink
capi/examples: build 'upload' too by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Aug 18, 2021
1 parent c351539 commit 10b0242
Showing 1 changed file with 7 additions and 4 deletions.
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)

0 comments on commit 10b0242

Please sign in to comment.