Simulator makefiles: Set file extension based on platform

This commit is contained in:
Dustin Spicuzza
2014-11-15 20:21:23 -05:00
committed by Peter Johnson
parent 6234fe06f5
commit d7a9794080
10 changed files with 68 additions and 18 deletions

View File

@@ -3,6 +3,11 @@ lib.dir = $(prefix)/lib
plugin.dir = $(lib.dir)/frcsim/plugins
build.dir = build
ext = .so
ifeq ($(shell uname), Darwin)
ext = .dylib
endif
all:
mkdir -p $(build.dir)
cd ${build.dir} && cmake .. && make
@@ -12,4 +17,4 @@ clean:
install: all
mkdir -p $(DESTDIR)$(plugin.dir)
install $(build.dir)/libgz_encoder.so $(DESTDIR)$(plugin.dir)
install $(build.dir)/libgz_encoder$(ext) $(DESTDIR)$(plugin.dir)