Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/lamont/src/lib/build/mk/build_gmk.in
ViewVC logotype

Diff of /branches/lamont/src/lib/build/mk/build_gmk.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/src/lib/build/mk/build_gmk.in revision 1115, Thu May 5 04:42:18 2011 UTC branches/vis12/src/lib/build/mk/build_gmk.in revision 1733, Tue Mar 13 14:09:15 2012 UTC
# Line 36  Line 36 
36  LDFLAGS =  LDFLAGS =
37  CPPFLAGS =      @CPPFLAGS@ $(INCLUDES)  CPPFLAGS =      @CPPFLAGS@ $(INCLUDES)
38    
39  #  COMMON_SRCS =   image.c input.c eigen2x2.c eigen3x3.c dyn-seq.c
 # View path  
 #  
 VPATH =         @DIDEROT_SRCDIR@/include:@DIDEROT_SRCDIR@/lib/include:@DIDEROT_SRCDIR@/lib/common  
   
 COMMON_SRCS =   image.c  
40    
41  SRCS            = $(COMMON_SRCS) $(TARGET_SRCS)  SRCS            = $(COMMON_SRCS) $(TARGET_SRCS)
42  OBJS            = $(patsubst %.c,%.o,$(SRCS))  OBJS            = $(patsubst %.c,%.o,$(SRCS))
43    
44    #
45    # determine target platform
46    #
47    ifeq (c,$(TARGET_PLATFORM))
48      CPPFLAGS += -DDIDEROT_TARGET_C
49    else ifeq (cl,$(TARGET_PLATFORM))
50      CPPFLAGS += -DDIDEROT_TARGET_CL
51    else ifeq (cuda,$(TARGET_PLATFORM))
52      CPPFLAGS += -DDIDEROT_TARGET_CUDA
53    else ifeq (parallel,$(TARGET_PLATFORM))
54      CPPFLAGS += -DDIDEROT_TARGET_PARALLEL
55    endif
56    
57    #
58    # set debug flags, if needed
59    #
60  ifeq ($(ENABLE_DEBUG),true)  ifeq ($(ENABLE_DEBUG),true)
61    CFLAGS += -g3 =O0    CFLAGS += -g3 -O0
62  else  else
63    CPPFLAGS += -DNDEBUG    CPPFLAGS += -DNDEBUG
64    CFLASG += -O3    CFLAGS += -O3
65  endif  endif
66    
67    #
68    # set numeric precision
69    #
70  ifeq ($(PRECISION),float)  ifeq ($(PRECISION),float)
71    CPPFLAGS += -DDIDEROT_SINGLE_PRECISION    CPPFLAGS += -DDIDEROT_SINGLE_PRECISION
72  else  else
73    CPPFLAGS += -DDIDEROT_DOUBLE_PRECISION    CPPFLAGS += -DDIDEROT_DOUBLE_PRECISION
74  endif  endif
75    CPPFLAGS += -DDIDEROT_INT
76    
77  ifeq ($(ENABLE_PARALLEL),true)  ifeq ($(ENABLE_PARALLEL),true)
78    CFLAGS += @PTHREAD_CFLAGS@    CFLAGS += @PTHREAD_CFLAGS@

Legend:
Removed from v.1115  
changed lines
  Added in v.1733

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0