Skip to content

Commit

Permalink
Various Linux fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rygorous committed Feb 19, 2014
1 parent 4103eb7 commit 72d6315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
LIBS=-lm -lrt

all: exam exam64 exam_simd_sse41 exam_alias

exam: main.cpp platform.h rans_byte.h
g++ -o $@ $< -O3 -lm
g++ -o $@ $< -O3 $(LIBS)

exam64: main64.cpp platform.h rans64.h
g++ -o $@ $< -O3 -lm
g++ -o $@ $< -O3 $(LIBS)

exam_simd_sse41: main.cpp platform.h rans_word_sse41.h
g++ -o $@ $< -O3 -lm
exam_simd_sse41: main_simd.cpp platform.h rans_word_sse41.h
g++ -o $@ $< -O3 -msse4.1 $(LIBS)

exam_alias: main_alias.cpp platform.h rans_byte.h
g++ -o $@ $< -O3 -lm
g++ -o $@ $< -O3 $(LIBS)
1 change: 1 addition & 0 deletions platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ double timer()
#define __STDC_FORMAT_MACROS
#include <time.h>
#include <inttypes.h>
#include <assert.h>

static inline double timer()
{
Expand Down

0 comments on commit 72d6315

Please sign in to comment.