Skip to content

Commit

Permalink
CFLAGS too
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 11, 2016
1 parent f0cb80c commit e78c92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ build:
mkdir -p build

build/geojson.o: src/mapbox/geojson.cpp include/mapbox/geojson.hpp build mason_packages Makefile
$(CXX) $(CXXFLAGS) $(DEPS) $(RAPIDJSON_DEP) -c $< -o $@
$(CXX) $(CFLAGS) $(CXXFLAGS) $(DEPS) $(RAPIDJSON_DEP) -c $< -o $@

build/libgeojson.a: build/geojson.o
$(AR) -rcs $@ $<

build/test: test/test.cpp test/fixtures/* build/libgeojson.a
$(CXX) $(CXXFLAGS) $(DEPS) $< -Lbuild -lgeojson -o $@
$(CXX) $(CFLAGS) $(CXXFLAGS) $(DEPS) $< -Lbuild -lgeojson -o $@

test: build/test
./build/test
Expand Down

0 comments on commit e78c92f

Please sign in to comment.