*** empty log message ***
authorkramm <kramm>
Fri, 27 Jul 2007 19:55:49 +0000 (19:55 +0000)
committerkramm <kramm>
Fri, 27 Jul 2007 19:55:49 +0000 (19:55 +0000)
installer/Makefile

index 70e3725..bf863d5 100644 (file)
@@ -1,4 +1,5 @@
 CC=/opt/xmingw/bin/i386-mingw32msvc-gcc -DWIN32
+STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip 
 WINDRES=/opt/xmingw/bin/i386-mingw32msvc-windres
 
 all: installer.exe
@@ -17,8 +18,19 @@ archive.o: archive.c archive.c depack.h
 os.o: ../lib/os.c ../lib/os.h
        $(CC) -c ../lib/os.c -o os.o
 
-installer.coff: installer.rc
+installer.coff: installer.rc swftools.ico
        $(WINDRES) installer.rc -O coff -F pe-i386 -o installer.coff
 
 installer.exe: installer.c depack.o archive.o depack.h crnfiles.o os.o installer.coff Makefile
        $(CC) installer.c depack.o archive.o crnfiles.o os.o installer.coff -o installer.exe $(LIBS)
+       $(STRIP) installer.exe
+       ./makegui installer.exe
+       upx -9 --best installer.exe 2>/dev/null || true
+
+crnfiles.c: ../win32/*.exe
+       CWD=`pwd`
+       cd ../win32;../installer/mkarchive `find`
+       mv ../win32/crnfiles.c ./
+
+clean:
+       rm -f installer.exe crnfiles.c *.o *.coff