added os.o, installer.rc.
authorkramm <kramm>
Sun, 6 Feb 2005 16:52:33 +0000 (16:52 +0000)
committerkramm <kramm>
Sun, 6 Feb 2005 16:52:33 +0000 (16:52 +0000)
installer/Makefile

index de58c83..70e3725 100644 (file)
@@ -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)