LICENSE=gpl.c
-all: files1.exe files2.exe uninstall.exe mkarchive
+all: files1.exe uninstall.exe mkarchive
LIBS=-lgdi32 -lshlwapi -lcomctl32 -lshell32 -lole32 -luuid
cd ../win32;../installer/mkarchive `find`
mv ../win32/crnfiles.c ./files1.c
-files2.c: ../win32_gui/*.exe ../win32_gui/*.swf mkarchive uninstall.exe
- cp uninstall.exe ../win32_gui/
- CWD=`pwd`
- cd ../win32_gui;../installer/mkarchive `find`
- mv ../win32_gui/crnfiles.c ./files2.c
+#files2.c: ../win32_gui/*.exe ../win32_gui/*.swf mkarchive uninstall.exe
+# cp uninstall.exe ../win32_gui/
+# CWD=`pwd`
+# cd ../win32_gui;../installer/mkarchive `find`
+# mv ../win32_gui/crnfiles.c ./files2.c
%.o: %.c
$(CC) -c $<
gcc mkarchive.c -o mkarchive -lz
crnfiles1.o: crnfiles1.c
-crnfiles2.o: crnfiles2.c
+#crnfiles2.o: crnfiles2.c
#depack.o: depack.c depack.h Makefile
# $(CC) -c depack.c -o depack.o
static char pathBuf[MAX_PATH];
static int do_abort = 0;
+static char* pdf2swf_dir;
static char* pdf2swf_path;
static char registry_path[1024];
BOOL CALLBACK PropertySheetFunc4(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {
if(message == WM_INITDIALOG) {
- pdf2swf_path = concatPaths(install_path, "pdf2swf_gui.exe");
+ pdf2swf_dir = concatPaths(install_path, "gpdf2swf");
+ pdf2swf_path = concatPaths(pdf2swf_dir, "gpdf2swf.exe");
FILE*fi = fopen(pdf2swf_path, "rb");
if(fi) {
printf("a GUI program exists, creating desktop/startmenu links\n");
if(config_createDesktop && path_desktop[0]) {
char* linkName = concatPaths(path_desktop, "pdf2swf.lnk");
printf("Creating desktop link %s -> %s\n", linkName, pdf2swf_path);
- if(!CreateShortcut(pdf2swf_path, "pdf2swf", linkName, 0, 0, 0, install_path)) {
+ if(!CreateShortcut(pdf2swf_path, "pdf2swf", linkName, 0, 0, 0, pdf2swf_dir)) {
MessageBox(0, "Couldn't create desktop shortcut", INSTALLER_NAME, MB_OK);
return 1;
}
CreateDirectory(group, 0);
addDir(group);
char* linkName = concatPaths(group, "pdf2swf.lnk");
- if(!CreateShortcut(pdf2swf_path, "pdf2swf", concatPaths(group, "pdf2swf.lnk"), 0, 0, 0, install_path) ||
+ if(!CreateShortcut(pdf2swf_path, "pdf2swf", concatPaths(group, "pdf2swf.lnk"), 0, 0, 0, pdf2swf_dir) ||
!CreateShortcut(uninstall_path, "uninstall", concatPaths(group, "uninstall.lnk"), 0, 0, 0, install_path)) {
MessageBox(0, "Couldn't create start menu entry", INSTALLER_NAME, MB_OK);
return 1;
MD5Final(dest, &ctx);
}
-void* inititialize_md5()
+void* initialize_md5()
{
MD5_CTX* ctx = malloc(sizeof(MD5_CTX));
memset(ctx, 0, sizeof(MD5_CTX));
cd lib/action;make generated >/dev/null 2>&1;cd ../..
SOURCES="${name}/src/swfcombine.1 \
-${name}/src/swfstrings.1 ${name}/src/swfdump.1 ${name}/src/swfextract.1 \
-${name}/src/jpeg2swf.1 ${name}/src/png2swf.1 ${name}/src/pdf2swf.1 \
-${name}/src/gif2swf.1 ${name}/src/wav2swf.1 ${name}/src/swfc.1 \
-${name}/src/swfbbox.1 ${name}/src/font2swf.1 ${name}/src/swfrender.1 \
+${name}/src/swfstrings.1 \
+${name}/src/swfdump.1 \
+${name}/src/swfextract.1 \
+${name}/src/jpeg2swf.1 \
+${name}/src/png2swf.1 \
+${name}/src/pdf2swf.1 \
+${name}/src/gif2swf.1 \
+${name}/src/wav2swf.1 \
+${name}/src/swfc.1 \
+${name}/src/swfbbox.1 \
+${name}/src/font2swf.1 \
+${name}/src/swfrender.1 \
${name}/src/as3compile.1 \
${name}/src/swfbytes.1 \
+${name}/src/pdf2pdf.1 \
${name}/src/swfcombine.c \
${name}/src/swfstrings.c \
${name}/src/swfdump.c \
${name}/src/gif2swf.c \
${name}/src/wav2swf.c \
${name}/src/pdf2swf.c \
+${name}/src/pdf2pdf.c \
${name}/src/swfc.c \
${name}/src/swfc-feedback.c \
${name}/src/swfc-history.c \
${name}/lib/devices/render.h \
${name}/lib/devices/text.c \
${name}/lib/devices/text.h \
+${name}/lib/devices/pdf.c \
+${name}/lib/devices/pdf.h \
${name}/lib/devices/polyops.c \
${name}/lib/devices/polyops.h \
${name}/lib/devices/record.c \
${name}/lib/python/tagmap.h \
${name}/setup.py"
-WXPDF2SWF=" \
-${name}/wx/pdf2swf.py \
-${name}/wx/images.py"
+WXPDF2SWF="" #TODO
+#WXPDF2SWF=" \
+#${name}/wx/pdf2swf.py \
+#${name}/wx/images.py"
CONFIGURE="${name}/configure.in \
${name}/configure \
${name}/ltmain.sh"
DOC="${name}/doc/fileformat.sc \
-${name}/ChangeLog \
-${name}/FAQ"
+${name}/ChangeLog"
tar -chf ${name}.tar \
${SOURCES} ${AVI2SWF} ${MAKEFILES} ${DOC} ${LIB} ${PYTHON} ${WXPDF2SWF} ${CONFIGURE} \