Browse code

Drop some compiler/pp flags

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@99427 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 12/02/2015 21:44:00
Showing 1 changed files

... ...
@@ -13,7 +13,7 @@ GSTRUCT_INCLUDE_DIR = $(INCLUDE_DIR)/gstruct
13 13
 
14 14
 SAMTOOLS_LIB = samtools/libbam.a
15 15
 
16
-PKG_CPPFLAGS += -I$(INCLUDE_DIR) -g -O3
16
+PKG_CPPFLAGS += -I$(INCLUDE_DIR)
17 17
 PKG_CFLAGS += -g -O3
18 18
 PKG_LIBS += $(GSTRUCT_LIB) $(SAMTOOLS_LIB) -lz
19 19
 
... ...
@@ -28,8 +28,8 @@ $(OBJECTS): $(GSTRUCT_INCLUDE_DIR) $(OBJECTS:%.o=%.c)
28 28
 
29 29
 $(GSTRUCT_LIB) $(GSTRUCT_INCLUDE_DIR): gstruct
30 30
 
31
-RSAMTOOLS_PATH := $(shell R_LIBS_USER=$(R_LIBRARY_DIR) $(R_HOME)/bin/Rscript --vanilla -e \
32
-                    'cat(system.file(package="Rsamtools"))')
31
+RSAMTOOLS_PATH := $(shell R_LIBS=$(R_LIBRARY_DIR) $(R_HOME)/bin/Rscript \
32
+		    --vanilla -e 'cat(system.file(package="Rsamtools"))')
33 33
 ${R_SRC_DIR}/samtools: $(RSAMTOOLS_PATH)
34 34
 ## gmap/gstruct assume samtools headers and libs are in one directory,
35 35
 ## so we need to create one and populate it with links to Rsamtools.
... ...
@@ -45,7 +45,7 @@ $(SUBDIRS): %: %/Makefile
45 45
 
46 46
 gstruct/Makefile: gstruct/configure ${R_SRC_DIR}/samtools 
47 47
 	cd $(dir $@); \
48
-	CFLAGS="-g" ./configure --enable-static --disable-shared \
48
+	./configure --enable-static --disable-shared \
49 49
 	            --prefix=${PREFIX} --includedir=${GSTRUCT_INCLUDE_DIR} \
50 50
 	            --libdir=${PREFIX}/${LIBnn} \
51 51
 	            --with-samtools-lib=${R_SRC_DIR}/samtools \
... ...
@@ -57,8 +57,7 @@ gstruct/Makefile: gstruct/configure ${R_SRC_DIR}/samtools
57 57
 gmap/Makefile: gmap/configure
58 58
 	cd $(dir $@); \
59 59
 	 ./configure --with-gmapdb=${GMAPDB} --prefix=${PREFIX} \
60
-	            --libdir=${PREFIX}/${LIBnn} --disable-maintainer-mode \
61
-		    CFLAGS=-g #added by gabe 5/14/14
60
+	            --libdir=${PREFIX}/${LIBnn} --disable-maintainer-mode
62 61
 
63 62
 clean:
64 63
 	for dir in $(SUBDIRS); do \