Skip to content

Commit

Permalink
Added headers to appease gcc on linux and updated Makefile.
Browse files Browse the repository at this point in the history
Aborted atttempt at setting up the cross-compiler for Ubuntu-->Windows
  • Loading branch information
mrkrause committed Jul 3, 2015
1 parent 1f53536 commit af7f8f5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 0 additions & 1 deletion Makefile

This file was deleted.

18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MATLAB_ROOT=/usr/local/MATLAB/R2015a/
CC=$(MATLAB_ROOT)/bin/mex
CFLAGS=-client engine -g -DMAT_FILE_SUPPORT
LIBS=-lFLAC -lFLAC++ -lboost_program_options -lboost_filesystem -lboost_system
TARGET = rippleToFlac
DEPS = NSxFile.h Config.h MatFile.h
OBJ = typeHelper.o MatFile.o Config.o NSxFile.o NSxChannel.o NSxHeader.o nsx2mat.o nsx2txt.o rippleToFlac.o


%.o: %.cpp $(DEPS)
$(CC) -c $@ $< $(CFLAGS)

rippleToFlac: $(OBJ)
$(CC) -output $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean
clean:
rm -f *.o *~ core
2 changes: 1 addition & 1 deletion Makefile.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CC=i686-pc-mingw32-g++
CC=x86_64-w64-mingw32-g++
CFLAGS= -O3 -Wall -Werror -std=gnu++11
LIBS=-logg -lFLAC -logg -lFLAC++ -logg -lFLAC -logg -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt
TARGET = rippleToFlac
Expand Down
2 changes: 1 addition & 1 deletion NSxFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "Config.h"
#ifdef MAT_FILE_SUPPORT
#include "matFile.h"
#include "MatFile.h"
#endif

class NSxFile {
Expand Down
2 changes: 2 additions & 0 deletions typeHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#ifndef _typeHelper_h
#define _typeHelper_h

#include <typeinfo>
#include <string>
#include <stdexcept>
#include <exception>
#include <iostream>
#include <cstdint>
Expand Down

0 comments on commit af7f8f5

Please sign in to comment.