forked from wlbr/csvfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 782 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ifndef COMSPEC
CLEAN = (cd alib; $(MAKE) clean) && (cd csvfix; $(MAKE) clean)
else
CLEAN = cmd.exe /c "clean.cmd"
endif
default:
@echo "use 'make win', 'make lin' or 'make mac'"
win:
cmd.exe /c "mkdirs.cmd"
cd alib && $(MAKE) win
cd csvfix && $(MAKE) win
cd csvfix/bin; gzip csvfix.exe -c > csvfix.win64.gz
lin:
mkdir -p alib/obj alib/lib csvfix/obj csvfix/bin
cd alib; $(MAKE) lin
cd csvfix; $(MAKE) lin
cd csvfix/bin; gzip csvfix -c > csvfix.linux-amd64.gz
# build for mac on Mountain Lion
# see https://groups.google.com/group/csvfix/browse_thread/thread/33ec3e5f157c16dd
mac:
mkdir -p alib/obj alib/lib csvfix/obj csvfix/bin
cd alib; $(MAKE) lin CCTYPE=clang
cd csvfix; $(MAKE) lin CCTYPE=clang
cd csvfix/bin; gzip csvfix -c > csvfix.osx.gz
clean:
$(CLEAN)