]> CyberLeo.Net >> Repos - SourceForge/eyefi-config.git/blob - Makefile
more portability improvements
[SourceForge/eyefi-config.git] / Makefile
1 CC=gcc
2 CFLAGS=-g -Wall
3
4 OBJS = eyefi-config.o eyefi-unix.o sha1.o md5.o
5
6 PLATFORM := $(shell uname -s)
7
8 ifeq ($(PLATFORM),Linux)
9         OBJS += eyefi-linux.o
10 endif
11 ifeq ($(PLATFORM),Darwin)
12         OBJS += eyefi-osx.o
13 endif
14
15 eyefi-config: $(OBJS)
16         $(CC) $(CFLAGS) $(OBJS) -o $@
17
18 clean:
19         rm eyefi-config core  $(OBJS) cscope*
20
21