-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Hansen
authored and
Dave Hansen
committed
Jul 13, 2008
1 parent
0e17d59
commit 6afcff6
Showing
4 changed files
with
275 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
CC=gcc | ||
CFLAGS=-g -Wall | ||
|
||
OBJS = eyefi-config.o sha1.o md5.o | ||
OBJS = eyefi-config.o eyefi-unix.o sha1.o md5.o | ||
|
||
PLATFORM := $(shell uname -s) | ||
|
||
ifeq ($(PLATFORM),Linux) | ||
OBJS += eyefi-linux.o | ||
endif | ||
ifeq ($(PLATFORM),Darwin) | ||
OBJS += eyefi-osx.o | ||
endif | ||
|
||
eyefi-config: $(OBJS) | ||
$(CC) $(CFLAGS) $(OBJS) -o $@ | ||
|
||
clean: | ||
rm eyefi-config core $(OBJS) | ||
rm eyefi-config core $(OBJS) cscope* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,3 @@ char *locate_eyefi_mount(void) | |
exit(1); | ||
return NULL; | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
int fd_set_no_cache(int fd) | ||
{ | ||
//fcntl(fd, F_SETFL, O_DIRECT); | ||
return fcntl(fd, F_NOCACHE, 1); | ||
} | ||
|
||
|