summaryrefslogtreecommitdiffstats
path: root/VES5.0/evel/evel-library/code/evel_training/12-suppress-fault-fields/Makefile
blob: ee8c346155c65685b090c658ecaae1a8b78865fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CC=gcc

ARCH=$(shell getconf LONG_BIT)
CODE_ROOT=$(CURDIR)/../../..
LIBS_DIR=$(CODE_ROOT)/libs/x86_$(ARCH)
INCLUDE_DIR=$(CODE_ROOT)/code/evel_library
EVEL_DEMO=$(CURDIR)/../../evel_demo
TEST_CONTROL=$(EVEL_DEMO)/evel_test_control.c

#******************************************************************************
# Standard compiler flags.                                                    *
#******************************************************************************
CPPFLAGS=
CFLAGS=-Wall -g -fPIC

all:     hello_evel_world

hello_evel_world: hello_evel_world.c $(TEST_CONTROL)
	$(CC) $(CPPFLAGS) $(CFLAGS) -o hello_evel_world \
	                            -L $(LIBS_DIR) \
	                            -I $(INCLUDE_DIR) \
	                            -I $(EVEL_DEMO) \
                               hello_evel_world.c \
                               $(TEST_CONTROL) \
                              -lpthread \
                              -level \
                              -lcurl

#******************************************************************************
# Configure the vel_username and vel_password to
# vel_username = username
# vel_password = password
#******************************************************************************
run: all
	./hello_evel_world 127.0.0.1 30000 username password