diff options
author | Jonathan L Long <jonlong@cs.berkeley.edu> | 2014-02-17 15:51:48 -0800 |
---|---|---|
committer | Jonathan L Long <jonlong@cs.berkeley.edu> | 2014-02-17 15:51:48 -0800 |
commit | 56c4930412f066b4d52db55ace81e3fef2a8208c (patch) | |
tree | a51791f2627089a0439fd53b2487629047e46244 /Makefile | |
parent | 59cdf127c28df07369ca8d2d1ba6f87d21c75972 (diff) | |
download | caffeonacl-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-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |