ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Urlader/prebuilt/Makefile
Revision: 1.2
Committed: Mon Jan 2 09:23:04 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
Changes since 1.1: +3 -2 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 W32CROSS=i686-w64-mingw32-
2     CFLAGS=-Os
3    
4     SRC = ..
5    
6     SOURCES = urlader.c urlib.h urlib.c liblzf/lzfP.h liblzf/lzf_d.c
7     SRCSOURCES = $(addprefix $(SRC)/,$(SOURCES))
8     BINARIES = windows-x86 linux-x86 linux-amd64 darwin-x86
9    
10     all: $(BINARIES)
11    
12     clean:
13     rm -f $(BINARIES)
14    
15     windows-x86: $(SRCSOURCES) $(SRC)/urlader.ico
16     echo 'MAINICON ICON "$(SRC)/urlader.ico"' >icon.rc
17     $(W32CROSS)windres icon.rc icon.o
18     rm icon.rc
19 root 1.2 $(W32CROSS)gcc $(CFLAGS) -mwin32 -mwindows -o $@ $< icon.o -lshell32 -lshlwapi
20 root 1.1 rm icon.o
21     $(W32CROSS)strip $@
22    
23     linux-x86: $(SRCSOURCES)
24     broot gcc -Os -o $@ $< -static
25     broot strip $@
26    
27     linux-amd64: linux-x86
28     ln -f $< $@
29    
30     darwin-x86: $(SRCSOURCES)
31     tar cC $(SRC) $(SOURCES) | ssh osx105 "\
32     cd /tmp || exit;\
33     tar x || exit;\
34     gcc -Os -o $@ urlader.c || exit;\
35     strip $@ || exit;\
36     tar c $@ || exit;\
37     " | tar xv
38    
39 root 1.2 dist: all
40     rsync -avP --chmod u=rwX,go=rX $(BINARIES) rijk:/var/www/urlader.schmorp.de/prebuilt/1.0/.
41 root 1.1