X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2FMakefile;h=70e3725ba2ac29cafc383adf211210e81642e1ad;hb=390f2813971fed2c89274786e372069071849f6d;hp=de58c8397f5fa039cb6f8b231f91faa6aba3921b;hpb=da97caafcee0c98ab921da77fbec70aa26727d98;p=swftools.git diff --git a/installer/Makefile b/installer/Makefile index de58c83..70e3725 100644 --- a/installer/Makefile +++ b/installer/Makefile @@ -1,8 +1,9 @@ CC=/opt/xmingw/bin/i386-mingw32msvc-gcc -DWIN32 +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 +14,11 @@ 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 + $(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)