]> CyberLeo.Net >> Repos - SourceForge/eyefi-config.git/blob - Makefile
Change filesystem detection to fstypename comparison instead of naked integer
[SourceForge/eyefi-config.git] / Makefile
1 #CC=$(CROSS_COMPILE)gcc -march=armv5te -mtune=xscale
2 #-march=armv5te  
3 #-marm
4 CFLAGS=-g -Wall
5
6 OBJS = eyefi-config.o eyefi-unix.o sha1.o md5.o
7
8 PLATFORM := $(shell uname -s)
9
10 ifeq ($(PLATFORM),Linux)
11         OBJS += eyefi-linux.o
12 endif
13 ifeq ($(PLATFORM),Darwin)
14         OBJS += eyefi-osx.o
15 endif
16 ifeq ($(PLATFORM),FreeBSD)
17         OBJS += eyefi-freebsd.o
18 endif
19
20 eyefi-config: $(OBJS)
21         $(CC) $(CFLAGS) $(OBJS) -static -o $@
22
23 clean:
24         rm eyefi-config core  $(OBJS) cscope*
25
26 eyefi-chdk.o: eyefi-config.h 
27 eyefi-config.o: eyefi-config.h
28 eyefi-linux.o: eyefi-config.h 
29 eyefi-unix.o: eyefi-config.h
30 md5.o: eyefi-config.h
31 sha1.o: eyefi-config.h