source: trunk/examples/c-example/Makefile @ 90

Last change on this file since 90 was 90, checked in by dkearney, 19 years ago

adjusted the c-example which include a c example and a c++ example
also changed RpLibrary?.h to look for the scew library in the scew directory.

File size: 892 bytes
Line 
1# define rappture src directory
2RP_BASE         = /opt/rappture
3
4PROGS           = plot plotc
5
6# define our compiling environment
7#
8CC              = gcc
9CXX             = g++
10DEBUG           = -g -Wall
11DEBUG_PLUS      = -g -DDEBUG
12
13# define our directories
14#
15INCLUDES_DIR    = $(RP_BASE)/include
16INCL_CEE        = -I $(INCLUDES_DIR)/cee
17INCL_CORE       = -I $(INCLUDES_DIR)/core
18INCL_RP_DEPS    = -I $(RP_BASE)/include
19
20LIB_DIR         = $(RP_BASE)/lib
21LIB_INC_PREFIX  = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR)
22LIB_RAPPTURE    = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture
23
24plot: plot.cc
25        $(CXX) $(DEBUG) -DDEBUG $(INCL_CEE) $(INCL_CORE) $(INCL_RP_DEPS) -o $@ $< $(LIB_RAPPTURE)
26
27plotc: plot.cc
28        $(CC) $(DEBUG) -DDEBUG $(INCL_CEE) $(INCL_CORE) $(INCL_RP_DEPS) -o $@ $< $(LIB_RAPPTURE)
29
30#### CLEAN UP ############################################################
31clean:
32        rm -f $(PROGS) run*.xml
Note: See TracBrowser for help on using the repository browser.