Skip to content

Commit

Permalink
more attempts (failed) to fix install command
Browse files Browse the repository at this point in the history
  • Loading branch information
jrussellsmyth committed Nov 17, 2013
1 parent bedeb93 commit c306284
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ OS := $(shell uname)
ifeq ($(OS),Darwin)
LDFLAGS += -flat_namespace -undefined suppress -dynamiclib
SO = dylib
else
else
LDFLAGS += -shared
SO = so
INSTALL += -D
endif

all: libsfark.$(SO)
Expand All @@ -25,5 +26,5 @@ libsfark.$(SO): $(OBJECTS)
$(CXX) -shared $(LDFLAGS) $(OBJECTS) -o libsfark.$(SO)

install: libsfark.$(SO) sfArkLib.h
$(INSTALL) -D libsfark.$(SO) $(DESTDIR)/usr/local/lib/libsfark.$(SO)
$(INSTALL) -D sfArkLib.h $(DESTDIR)/usr/local/include/sfArkLib.h
$(INSTALL) libsfark.$(SO) $(DESTDIR)/usr/local/lib/libsfark.$(SO)
$(INSTALL) sfArkLib.h $(DESTDIR)/usr/local/include/sfArkLib.h

0 comments on commit c306284

Please sign in to comment.