Skip to content

Commit

Permalink
Updated Makefile for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkrause committed Jan 16, 2019
1 parent 13d4dd3 commit 6b8f883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
12 changes: 8 additions & 4 deletions Makefile.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
MATLAB_ROOT=/usr/local/MATLAB/R2015a/
MATLAB_ROOT=/usr/local/MATLAB/R2018a
CC=$(MATLAB_ROOT)/bin/mex
CFLAGS=-client engine -g -DMAT_FILE_SUPPORT
CFLAGS=-v GCC=/usr/bin/gcc-5 -client engine -g -DMAT_FILE_SUPPORT
LIBS=-lFLAC -lFLAC++ -lboost_program_options -lboost_filesystem -lboost_system
TARGET = rippleToFlac
DEPS = NSxFile.h NSxConfig.h MatFile.h
OBJ = typeHelper.o MatFile.o NSxConfig.o NSxFile.o NSxChannel.o NSxHeader.o nsx2mat.o nsx2txt.o rippleToFlac.o
OBJ = NSxConfig.o NSxFile.o NSxChannel.o NSxHeader.o nsx2mat.o nsx2txt.o rippleToFlac.o
COMMON_OBJ = typeHelper.o MatFile.o
%.o: %.cpp $(DEPS)
$(CC) -c $@ $< $(CFLAGS)

rippleToFlac: $(OBJ)
rippleToFlac: $(COMMON_OBJ) NSxConfig.o NSxFile.o NSxChannel.o NSxHeader.o nsx2mat.o nsx2txt.o rippleToFlac.o
$(CC) -output $@ $^ $(CFLAGS) $(LIBS)

NEVExtract: $(COMMON_OBJ) datapacket.o NEVConfig.o NEVFile.o extheader.o NEVExtract.o saveNEVEvents.o
$(CC) -output $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean
clean:
rm -f *.o *~ core

0 comments on commit 6b8f883

Please sign in to comment.