X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2FMakefile;h=bf863d5e41bc344b0f3951d40d857540a62fd5a9;hb=b286937aa13ae10bb6fabcbccf07d13bd649e62a;hp=de58c8397f5fa039cb6f8b231f91faa6aba3921b;hpb=da97caafcee0c98ab921da77fbec70aa26727d98;p=swftools.git diff --git a/installer/Makefile b/installer/Makefile index de58c83..bf863d5 100644 --- a/installer/Makefile +++ b/installer/Makefile @@ -1,8 +1,10 @@ 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 -LIBS=-lgdi32 -lshlwapi +LIBS=-lgdi32 -lshlwapi -lcomctl32 -lshell32 -lole32 crnfiles.o: crnfiles.c $(CC) -c crnfiles.c @@ -13,6 +15,22 @@ depack.o: depack.c depack.h Makefile archive.o: archive.c archive.c depack.h $(CC) -c archive.c -o archive.o -installer.exe: installer.c depack.o archive.o depack.h crnfiles.o Makefile - $(CC) installer.c depack.o archive.o crnfiles.o -o installer.exe $(LIBS) +os.o: ../lib/os.c ../lib/os.h + $(CC) -c ../lib/os.c -o os.o +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