-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)
+lzma/LzmaDecode.o: lzma/LzmaDecode.c lzma/LzmaDecode.h lzma/LzmaTypes.h
+ $(CC) -c lzma/LzmaDecode.c -o lzma/LzmaDecode.o
+
+uninstall.exe: uninstaller.o utils.o installer.coff Makefile
+ $(CC) uninstaller.o utils.o installer.coff -o $@ $(LIBS)
+ $(STRIP) $@
+ ./makegui $@
+ #upx -9 --best $@ 2>/dev/null || true
+
+%.exe: %.o installer.o license.o archive.o utils.o lzma/LzmaDecode.o installer.coff Makefile
+ $(CC) installer.o license.o utils.o archive.o lzma/LzmaDecode.o installer.coff $< -o $@ $(LIBS)
+ $(STRIP) $@
+ ./makegui $@
+
+#installer.exe: installer.c depack.o archive.o depack.h crnfiles.o installer.coff Makefile
+# $(CC) installer.c depack.o archive.o crnfiles.o installer.coff -o installer.exe $(LIBS)
+# $(STRIP) installer.exe
+# #./makegui installer.exe
+# #upx -9 --best installer.exe 2>/dev/null || true
+
+clean:
+ rm -f installer.exe files*exe crnfiles.c *.o *.coff