aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-06-27 17:28:01 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-06-27 17:28:01 +0300
commit7ff0004fbce24ae72eddfe392828ffd7d4639ed1 (patch)
tree07f56037ab19bf892501b1959f1b7f8ed47a7b49
parentAdded missing $(EXEEXT). (diff)
downloadxz-7ff0004fbce24ae72eddfe392828ffd7d4639ed1.tar.xz
Moved the Windows resource files outside the windows directory
to prepare for building them with Autotools.
-rw-r--r--src/common/common_w32res.rc (renamed from windows/common.rc)0
-rw-r--r--src/liblzma/liblzma_w32res.rc (renamed from windows/liblzma.rc)2
-rw-r--r--src/xz/xz_w32res.rc (renamed from windows/xz.rc)2
-rw-r--r--src/xzdec/lzmadec_w32res.rc (renamed from windows/lzmadec.rc)2
-rw-r--r--src/xzdec/xzdec_w32res.rc (renamed from windows/xzdec.rc)2
-rw-r--r--windows/Makefile35
6 files changed, 23 insertions, 20 deletions
diff --git a/windows/common.rc b/src/common/common_w32res.rc
index c7a6b13d..c7a6b13d 100644
--- a/windows/common.rc
+++ b/src/common/common_w32res.rc
diff --git a/windows/liblzma.rc b/src/liblzma/liblzma_w32res.rc
index 3d41ae18..00516364 100644
--- a/windows/liblzma.rc
+++ b/src/liblzma/liblzma_w32res.rc
@@ -2,4 +2,4 @@
#define MY_NAME "liblzma"
#define MY_SUFFIX ".dll"
#define MY_DESC "liblzma data compression library"
-#include "common.rc"
+#include "common_w32res.rc"
diff --git a/windows/xz.rc b/src/xz/xz_w32res.rc
index 5ab33c84..c8fd9e60 100644
--- a/windows/xz.rc
+++ b/src/xz/xz_w32res.rc
@@ -2,4 +2,4 @@
#define MY_NAME "xz"
#define MY_SUFFIX ".exe"
#define MY_DESC "xz data compression tool for .xz and .lzma files"
-#include "common.rc"
+#include "common_w32res.rc"
diff --git a/windows/lzmadec.rc b/src/xzdec/lzmadec_w32res.rc
index d965d007..7d90e420 100644
--- a/windows/lzmadec.rc
+++ b/src/xzdec/lzmadec_w32res.rc
@@ -2,4 +2,4 @@
#define MY_NAME "lzmadec"
#define MY_SUFFIX ".exe"
#define MY_DESC "lzmadec uncompression tool for .lzma files"
-#include "common.rc"
+#include "common_w32res.rc"
diff --git a/windows/xzdec.rc b/src/xzdec/xzdec_w32res.rc
index 33138b64..84f4e478 100644
--- a/windows/xzdec.rc
+++ b/src/xzdec/xzdec_w32res.rc
@@ -2,4 +2,4 @@
#define MY_NAME "xzdec"
#define MY_SUFFIX ".exe"
#define MY_DESC "xzdec uncompression tool for .xz files"
-#include "common.rc"
+#include "common_w32res.rc"
diff --git a/windows/Makefile b/windows/Makefile
index 0ff45a81..db362ef2 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -104,7 +104,7 @@ pkg: all
$(CP) ../src/liblzma/api/lzma.h pkg/include
$(CP) ../src/liblzma/api/lzma/*.h pkg/include/lzma
-%_rc.o: %.rc
+%.o: %.rc
$(WINDRES) $(ALL_CPPFLAGS) $< $@
@@ -196,7 +196,10 @@ endif
LIBLZMA_OBJS_C = $(LIBLZMA_SRCS_C:.c=.o)
LIBLZMA_OBJS_ASM = $(LIBLZMA_SRCS_ASM:.S=.o)
-LIBLZMA_OBJS = $(LIBLZMA_OBJS_C) $(LIBLZMA_OBJS_ASM) liblzma_rc.o
+LIBLZMA_OBJS = \
+ $(LIBLZMA_OBJS_C) \
+ $(LIBLZMA_OBJS_ASM) \
+ ../src/liblzma/liblzma_w32res.o
LIBLZMA_OBJS_STATIC_C = $(LIBLZMA_SRCS_C:.c=-static.o)
LIBLZMA_OBJS_STATIC_ASM = $(LIBLZMA_SRCS_ASM:.S=-static.o)
@@ -243,25 +246,25 @@ xzdec: xzdec-dynamic.exe lzmadec-dynamic.exe xzdec.exe lzmadec.exe
XZDEC_SRCS = ../src/xzdec/xzdec.c
-xzdec-dynamic.exe: liblzma.dll $(XZDEC_SRCS) xzdec_rc.o
- $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) xzdec_rc.o -o $@ liblzma.a
+xzdec-dynamic.exe: liblzma.dll $(XZDEC_SRCS) ../src/xzdec/xzdec_w32res.o
+ $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) ../src/xzdec/xzdec_w32res.o -o $@ liblzma.a
$(STRIP) --strip-all $@
-lzmadec-dynamic.exe: liblzma.dll $(XZDEC_SRCS) lzmadec_rc.o
- $(CC) $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) lzmadec_rc.o -o $@ liblzma.a
+lzmadec-dynamic.exe: liblzma.dll $(XZDEC_SRCS) ../src/xzdec/lzmadec_w32res.o
+ $(CC) $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) ../src/xzdec/lzmadec_w32res.o -o $@ liblzma.a
$(STRIP) --strip-all $@
-xzdec.exe: liblzma_static.lib $(XZDEC_SRCS) xzdec_rc.o
- $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) xzdec_rc.o -o $@ liblzma_static.lib
+xzdec.exe: liblzma_static.lib $(XZDEC_SRCS) ../src/xzdec/xzdec_w32res.o
+ $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) ../src/xzdec/xzdec_w32res.o -o $@ liblzma_static.lib
$(STRIP) --strip-all $@
-lzmadec.exe: liblzma_static.lib $(XZDEC_SRCS) lzmadec_rc.o
- $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) lzmadec_rc.o -o $@ liblzma_static.lib
+lzmadec.exe: liblzma_static.lib $(XZDEC_SRCS) ../src/xzdec/lzmadec_w32res.o
+ $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) ../src/xzdec/lzmadec_w32res.o -o $@ liblzma_static.lib
$(STRIP) --strip-all $@
.PHONY: xzdec-clean
xzdec-clean:
- -$(RM) xzdec-dynamic.exe lzmadec-dynamic.exe xzdec.exe lzmadec.exe xzdec_rc.o lzmadec_rc.o
+ -$(RM) xzdec-dynamic.exe lzmadec-dynamic.exe xzdec.exe lzmadec.exe ../src/xzdec/xzdec_w32res.o ../src/xzdec/lzmadec_w32res.o
##########
@@ -289,17 +292,17 @@ XZ_OBJS_STATIC = $(XZ_SRCS:.c=-static.o)
$(XZ_OBJS): %.o: %.c
$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
-xz-dynamic.exe: liblzma.dll $(XZ_OBJS) xz_rc.o
- $(CC) $(ALL_CFLAGS) $(XZ_OBJS) xz_rc.o -o $@ liblzma.a
+xz-dynamic.exe: liblzma.dll $(XZ_OBJS) ../src/xz/xz_w32res.o
+ $(CC) $(ALL_CFLAGS) $(XZ_OBJS) ../src/xz/xz_w32res.o -o $@ liblzma.a
$(STRIP) --strip-all $@
$(XZ_OBJS_STATIC): %-static.o: %.c
$(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
-xz.exe: liblzma_static.lib $(XZ_OBJS_STATIC) xz_rc.o
- $(CC) $(ALL_CFLAGS) $(XZ_OBJS_STATIC) xz_rc.o -o $@ liblzma_static.lib
+xz.exe: liblzma_static.lib $(XZ_OBJS_STATIC) ../src/xz/xz_w32res.o
+ $(CC) $(ALL_CFLAGS) $(XZ_OBJS_STATIC) ../src/xz/xz_w32res.o -o $@ liblzma_static.lib
$(STRIP) --strip-all $@
.PHONY: xz-clean
xz-clean:
- -$(RM) $(XZ_OBJS) $(XZ_OBJS_STATIC) xz_rc.o xz-dynamic.exe xz.exe
+ -$(RM) $(XZ_OBJS) $(XZ_OBJS_STATIC) ../src/xz/xz_w32res.o xz-dynamic.exe xz.exe