977c073274ad650ccab6b12bdb9a3a4958326d68
[demo.git] / vnfs / VES5.0 / evel / evel-library / code / evel_training / 06-username-password / Makefile
1 CC=gcc
2
3 ARCH=$(shell getconf LONG_BIT)
4 CODE_ROOT=$(CURDIR)/../../..
5 LIBS_DIR=$(CODE_ROOT)/libs/x86_$(ARCH)
6 INCLUDE_DIR=$(CODE_ROOT)/code/evel_library
7
8 #******************************************************************************
9 # Standard compiler flags.                                                    *
10 #******************************************************************************
11 CPPFLAGS=
12 CFLAGS=-Wall -g -fPIC
13
14 all:     hello_evel_world
15
16 hello_evel_world: hello_evel_world.c
17         $(CC) $(CPPFLAGS) $(CFLAGS) -o hello_evel_world \
18                                     -L $(LIBS_DIR) \
19                                     -I $(INCLUDE_DIR) \
20                                hello_evel_world.c \
21                               -lpthread \
22                               -level \
23                               -lcurl
24
25 #******************************************************************************
26 # Configure the vel_username and vel_password to
27 # vel_username = username
28 # vel_password = password
29 #******************************************************************************
30 run:
31         ./hello_evel_world localhost 30000 username password