summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan L Long <jonlong@cs.berkeley.edu>2014-02-17 15:51:48 -0800
committerJonathan L Long <jonlong@cs.berkeley.edu>2014-02-17 15:51:48 -0800
commit56c4930412f066b4d52db55ace81e3fef2a8208c (patch)
treea51791f2627089a0439fd53b2487629047e46244 /Makefile
parent59cdf127c28df07369ca8d2d1ba6f87d21c75972 (diff)
downloadcaffeonacl-56c4930412f066b4d52db55ace81e3fef2a8208c.tar.gz
caffeonacl-56c4930412f066b4d52db55ace81e3fef2a8208c.tar.bz2
caffeonacl-56c4930412f066b4d52db55ace81e3fef2a8208c.zip
don't pass LDFLAGS when only performing compilation (-c)
This simplifies the compiler commands and suppresses warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d0582572..dc3d51d8 100644
--- a/Makefile
+++ b/Makefile
@@ -141,27 +141,27 @@ $(EXAMPLE_BINS): %.bin : %.o $(STATIC_NAME)
$(OBJS): $(PROTO_GEN_CC) $(HXX_SRCS)
$(BUILD_DIR)/src/$(PROJECT)/%.o: src/$(PROJECT)/%.cpp
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/$(PROJECT)/layers/%.o: src/$(PROJECT)/layers/%.cpp
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/$(PROJECT)/proto/%.o: src/$(PROJECT)/proto/%.cc
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/$(PROJECT)/test/%.o: src/test/%.cpp
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/$(PROJECT)/util/%.o: src/$(PROJECT)/util/%.cpp
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/gtest/%.o: src/gtest/%.cpp
- $(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
+ $(CXX) $< $(CXXFLAGS) -c -o $@
@echo
$(BUILD_DIR)/src/$(PROJECT)/layers/%.cuo: src/$(PROJECT)/layers/%.cu