SCM Repository
View of /branches/pure-cfg/src/lib/build/mk/build_gmk.in
Parent Directory
|
Revision Log
Revision 1093 -
(download)
(annotate)
Wed May 4 17:53:44 2011 UTC (11 years, 2 months ago) by jhr
File size: 1381 byte(s)
Wed May 4 17:53:44 2011 UTC (11 years, 2 months ago) by jhr
File size: 1381 byte(s)
Working on new runtime build infrastructure
# build.gmk # # COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) # All rights reserved. # # Common definitions shared by all of the runtime-system makefiles. # # @configure_input@ # # # determine the build options # ifeq (,$(findstring debug,$(BUILD_OPTIONS))) ENABLE_DEBUG=false else ENABLE_DEBUG=true endif ifeq (,$(findstring float,$(BUILD_OPTIONS))) PRECISION=double else PRECISION=float endif ifeq (,$(findstring parallel,$(BUILD_OPTIONS))) ENABLE_PARALLEL=false else ENABLE_PARALLEL=true endif # # tools and flags # CC = @CC@ INCLUDES = -I@DIDEROT_SRCDIR@/include -I@TEEM_DIR@/include -I../../include CFLAGS = @CFLAGS@ @CFLAG_M64@ LDFLAGS = CPPFLAGS = @CPPFLAGS@ $(INCLUDES) # # View path # VPATH = @DIDEROT_SRCDIR@/include:@DIDEROT_SRCDIR@/include:@DIDEROT_SRCDIR@/lib/common COMMON_SRCS = image.c SRCS = $(COMMON_SRCS) $(TARGET_SRCS) OBJS = $(patsubst %.c,%.o,$(C_SRCS)) ifeq ($(ENABLE_DEBUG),true) CFLAGS += -g3 =O0 else CPPFLAGS += -DNDEBUG CFLASG += -O3 endif ifeq ($(PRECISION),float) CPPFLAGS += -DDIDEROT_SINGLE_PRECISION else CPPFLAGS += -DDIDEROT_DOUBLE_PRECISION endif ifeq ($(ENABLE_PARALLEL),true) CFLAGS += @PTHREAD_CFLAGS@ endif #################### Cleanup #################### CLEAN_FILES = $(OBJS) $(TARGET) CLEAN_FILES += $(wildcard *.dSYM) include @DIDEROT_MKDIR@/clean-rules.gmk
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |